Sha256: 4da7130f0784b8c455cea947ad5dc16cc3389835f6ceff8392d7e8acde8082e9

Contents?: true

Size: 953 Bytes

Versions: 3

Compression:

Stored size: 953 Bytes

Contents

require 'halo-api/client'

require 'halo-api/modules/profile/halo5/player_appearance'
require 'halo-api/modules/profile/halo5/player_emblem_image'
require 'halo-api/modules/profile/halo5/player_spartan_image'


module Halo
  module Profile

    # Halo 5 Profile endpoints
    class Halo5ProfileClient < Client

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

        super(client_settings)
      end

      def player_appearance(options = {})
        merge_options_and_return_obj(options, Halo::Profile::Halo5::PlayerAppearance)
      end

      def player_emblem_image(options = {})
        merge_options_and_return_obj(options, Halo::Profile::Halo5::PlayerEmblemImage)
      end

      def player_spartan_image(options = {})
        merge_options_and_return_obj(options, Halo::Profile::Halo5::PlayerSpartanImage)
      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/profile/halo5_profile_client.rb
halo-api-0.1.1 lib/halo-api/modules/profile/halo5_profile_client.rb
halo-api-0.1.0 lib/halo-api/modules/profile/halo5_profile_client.rb