Class: OptimizePlayer::Proxies::AccountProxy
- Inherits:
-
Object
- Object
- OptimizePlayer::Proxies::AccountProxy
- Defined in:
- lib/optimize_player/proxies/account_proxy.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #entity_name ⇒ Object
- #fetch ⇒ Object
-
#initialize(client) ⇒ AccountProxy
constructor
A new instance of AccountProxy.
- #inspect ⇒ Object
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
#client ⇒ Object (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_name ⇒ Object
19 20 21 |
# File 'lib/optimize_player/proxies/account_proxy.rb', line 19 def entity_name 'account' end |
#fetch ⇒ Object
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 |
#inspect ⇒ Object
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 |