Sha256: 23d75b2ef16dc4732a25679efec97fba391ee4553dc1db329102eb6742f95be8

Contents?: true

Size: 1.1 KB

Versions: 3

Compression:

Stored size: 1.1 KB

Contents

require 'halo-api/client'

require 'halo-api/modules/ugc/halo5/player_game_variant'
require 'halo-api/modules/ugc/halo5/player_game_variants'
require 'halo-api/modules/ugc/halo5/player_map_variant'
require 'halo-api/modules/ugc/halo5/player_map_variants'


module Halo
  module Ugc

    # Halo 5 Ugc endpoints
    class Halo5UgcClient < Client

      def initialize(options = {})
        client_settings = { endpoint: '/ugc/h5/players' }
        client_settings = client_settings.merge(options)

        super(client_settings)
      end

      def player_game_variant(options = {})
        merge_options_and_return_obj(options, Halo::Profile::Halo5::PlayerGameVariant)
      end

      def player_game_variants(options = {})
        merge_options_and_return_obj(options, Halo::Profile::Halo5::PlayerGameVariants)
      end

      def player_map_variant(options = {})
        merge_options_and_return_obj(options, Halo::Profile::Halo5::PlayerMapVariant)
      end

      def player_map_variants(options = {})
        merge_options_and_return_obj(options, Halo::Profile::Halo5::PlayerMapVariants)
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
halo-api-0.2.0 lib/halo-api/modules/ugc/halo5_ugc_client.rb
halo-api-0.1.1 lib/halo-api/modules/ugc/halo5_ugc_client.rb
halo-api-0.1.0 lib/halo-api/modules/ugc/halo5_ugc_client.rb