Class: Layer::Identity
- Includes:
- Operations::Delete, Operations::Fetch, Operations::Patch
- Defined in:
- lib/layer/identity.rb
Overview
Note:
This is only available via the Platform API.
Managing user identity is also possible:
Instance Attribute Summary
Attributes inherited from Resource
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Operations::Patch
Methods included from Operations::Delete
Methods included from Operations::Fetch
Methods inherited from Resource
class_name, from_response, #id, #initialize, #respond_to_missing?, #url
Constructor Details
This class inherits a constructor from Layer::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Layer::Resource
Class Method Details
.url ⇒ Object
17 18 19 |
# File 'lib/layer/identity.rb', line 17 def self.url '/identity' end |
Instance Method Details
#attributes=(attributes) ⇒ Object
21 22 23 24 |
# File 'lib/layer/identity.rb', line 21 def attributes=(attributes) attributes['metadata'] ||= {} super end |
#metadata=(metadata) ⇒ Object
26 27 28 29 30 |
# File 'lib/layer/identity.rb', line 26 def () .each_pair do |key, value| self.[key] = value end end |