Class: Layer::Client::Platform
- Inherits:
-
Layer::Client
- Object
- Layer::Client
- Layer::Client::Platform
- Defined in:
- lib/layer/client/platform.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#app_id ⇒ Object
readonly
Returns the value of attribute app_id.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(app_id = Layer::Client.app_id, token = Layer::Client.token) ⇒ Platform
constructor
A new instance of Platform.
Methods inherited from Layer::Client
authenticate, configure, #delete, #get, #head, normalize_id, #options, #patch, #post, #put
Constructor Details
#initialize(app_id = Layer::Client.app_id, token = Layer::Client.token) ⇒ Platform
Returns a new instance of Platform.
7 8 9 10 |
# File 'lib/layer/client/platform.rb', line 7 def initialize(app_id = Layer::Client.app_id, token = Layer::Client.token) @app_id = self.class.normalize_id(app_id) @token = token end |
Instance Attribute Details
#app_id ⇒ Object (readonly)
Returns the value of attribute app_id.
5 6 7 |
# File 'lib/layer/client/platform.rb', line 5 def app_id @app_id end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
5 6 7 |
# File 'lib/layer/client/platform.rb', line 5 def token @token end |