Sha256: 9264b5107354765a480567e88a35556ca6f9868980fe289b3191dd5e110993f1

Contents?: true

Size: 545 Bytes

Versions: 7

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

require 'warframe/models/news'
require_relative '../utils'

module Warframe
  module REST
    module API
      # API endpoint for getting information from the News route.
      #
      # {https://api.warframestat.us/pc/news Example Response}
      module News
        include Warframe::REST::Utils

        # Gets the current news data.
        # @return [Array<Warframe::Models::News>]
        def news
          get('/news', Warframe::Models::News)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
warframe-0.3.0 lib/warframe/rest/api/news.rb
warframe-0.2.1 lib/warframe/rest/api/news.rb
warframe-0.2.0 lib/warframe/rest/api/news.rb
warframe-0.1.3 lib/warframe/rest/api/news.rb
warframe-0.1.2 lib/warframe/rest/api/news.rb
warframe-0.1.1 lib/warframe/rest/api/news.rb
warframe-0.1.0 lib/warframe/rest/api/news.rb