Class: Layer::Client::Platform

Inherits:
Layer::Client show all
Defined in:
lib/layer/client/platform.rb

Direct Known Subclasses

Webhook

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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

#tokenObject (readonly)

Returns the value of attribute token.



5
6
7
# File 'lib/layer/client/platform.rb', line 5

def token
  @token
end