Class: OptimizePlayer::Proxies::AccountProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/optimize_player/proxies/account_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ AccountProxy

Returns a new instance of AccountProxy.



6
7
8
# File 'lib/optimize_player/proxies/account_proxy.rb', line 6

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



4
5
6
# File 'lib/optimize_player/proxies/account_proxy.rb', line 4

def client
  @client
end

Instance Method Details

#entity_nameObject



19
20
21
# File 'lib/optimize_player/proxies/account_proxy.rb', line 19

def entity_name
  'account'
end

#fetchObject



14
15
16
17
# File 'lib/optimize_player/proxies/account_proxy.rb', line 14

def fetch
  response = client.send_request(entity_name, :get)
  Converter.convert_to_object(self, response)
end

#inspectObject



10
11
12
# File 'lib/optimize_player/proxies/account_proxy.rb', line 10

def inspect()
  "#<#{self.class}:0x#{self.object_id.to_s(16)}"
end