Sha256: 0834b7af4784402eecbafdd913fce52afbe220273149b56c719139902078c4e1

Contents?: true

Size: 1.75 KB

Versions: 5

Compression:

Stored size: 1.75 KB

Contents

module Halo
  module HaloWars2
    class Metadata < APIResponse

      def initialize(options = {})
        @endpoint = '/metadata/hw2'

        super(options)
      end

      def campaign_levels(options = {})
        get_data("#{@endpoint}/campaign-levels", options)
      end

      def campaign_logs(options = {})
        get_data("#{@endpoint}/campaign-logs", options)
      end

      def card_keywords(options = {})
        get_data("#{@endpoint}/card-keywords", options)
      end

      def cards(options = {})
        get_data("#{@endpoint}/cards", options)
      end

      def csr_designations(options = {})
        get_data("#{@endpoint}/csr-designations", options)
      end

      def difficulties(options = {})
        get_data("#{@endpoint}/difficulties", options)
      end

      def game_object_categories(options = {})
        get_data("#{@endpoint}/game-object-categories", options)
      end

      def game_objects(options = {})
        get_data("#{@endpoint}/game-objects", options)
      end

      def leader_powers(options = {})
        get_data("#{@endpoint}/leader-powers", options)
      end

      def leaders(options = {})
        get_data("#{@endpoint}/leaders", options)
      end

      def maps(options = {})
        get_data("#{@endpoint}/maps", options)
      end

      def packs(options = {})
        get_data("#{@endpoint}/packs", options)
      end

      def playlists(options = {})
        get_data("#{@endpoint}/playlists", options)
      end

      def seasons(options = {})
        get_data("#{@endpoint}/seasons", options)
      end

      def spartan_ranks(options = {})
        get_data("#{@endpoint}/spartan-ranks", options)
      end

      def techs(options = {})
        get_data("#{@endpoint}/techs", options)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
halo-api-0.4.3 lib/halo-api/modules/halo_wars2/metadata.rb
halo-api-0.4.2 lib/halo-api/modules/halo_wars2/metadata.rb
halo-api-0.4.1 lib/halo-api/modules/halo_wars2/metadata.rb
halo-api-0.3.1 lib/halo-api/modules/halo_wars2/metadata.rb
halo-api-0.3.0 lib/halo-api/modules/halo_wars2/metadata.rb