lib/dtn/lookups/news/story_count.rb
def call(date_range: "", symbols: [], sources: [], format_type: DEFAULT_NEWS_FORMAT_TYPE)
          self.combined_options = defaults.merge(
            format_type: validate_format_type(format_type),
            symbols: validate_list(symbols),
            sources: validate_list(sources),
            date_range: validate_date_ranges(date_range)
          )
          super
        end
# Returns all current news headlines.
#
# @params sources Array of Strings or ';' separated String,
#         Filter news sources to query. Default all sources.
# @params symbols Array of Strings or ';' separated String,
#         Filter symbols you want news for. Default all symbols.
# @params date_range String or Date
#         Filter News only for dates. Default no date filter
#
# Example messages
#
#   NSC,[Symbols],[XML/Text],[Sources],[DateRange],[RequestID]<CR>
Returns all current news headlines.
Returns all current news headlines .
def call(date_range: "", symbols: [], sources: [], format_type: DEFAULT_NEWS_FORMAT_TYPE)
          self.combined_options = defaults.merge(
            format_type: validate_format_type(format_type),
            symbols: validate_list(symbols),
            sources: validate_list(sources),
            date_range: validate_date_ranges(date_range)
          )
          super
        end
def call ( date_range : "" , symbols : [ ] , sources : [ ] , format_type : DEFAULT_NEWS_FORMAT_TYPE ) self . combined_options = defaults . merge ( format_type : validate_format_type ( format_type ) , symbols : validate_list ( symbols ) , sources : validate_list ( sources ) , date_range : validate_date_ranges ( date_range ) ) super end
Returns all current news headlines.
Returns all current news headlines .
date_range
symbols
sources
format_type
params
sources Array of Strings or ';' separated String, Filter news sources to query. Default all sources.
sources Array of Strings or ' ; ' separated String Filter news sources to query . Default all sources .
params
symbols Array of Strings or ';' separated String, Filter symbols you want news for. Default all symbols.
symbols Array of Strings or ' ; ' separated String Filter symbols you want news for . Default all symbols .
params
date_range String or Date Filter News only for dates. Default no date filter Example messages NSC,[Symbols],[XML/Text],[Sources],[DateRange],[RequestID]
date_range String or Date Filter News only for dates . Default no date filter Example messages NSC [ Symbols ] [ XML / Text ] [ Sources ] [ DateRange ] [ RequestID ]