Class: Cadenya::Types::TenantReference
- Inherits:
-
Object
- Object
- Cadenya::Types::TenantReference
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#external_id ⇒ Object
readonly
Returns the value of attribute external_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: nil, external_id: nil, name: nil) ⇒ TenantReference
constructor
A new instance of TenantReference.
- #to_h ⇒ Object
Constructor Details
#initialize(id: nil, external_id: nil, name: nil) ⇒ TenantReference
Returns a new instance of TenantReference.
5579 5580 5581 5582 5583 |
# File 'lib/cadenya/types.rb', line 5579 def initialize(id: nil, external_id: nil, name: nil) @id = id @external_id = external_id @name = name end |
Instance Attribute Details
#external_id ⇒ Object (readonly)
Returns the value of attribute external_id.
5577 5578 5579 |
# File 'lib/cadenya/types.rb', line 5577 def external_id @external_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5577 5578 5579 |
# File 'lib/cadenya/types.rb', line 5577 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5577 5578 5579 |
# File 'lib/cadenya/types.rb', line 5577 def name @name end |
Class Method Details
.from_json(data) ⇒ Object
5585 5586 5587 5588 5589 5590 5591 |
# File 'lib/cadenya/types.rb', line 5585 def self.from_json(data) new( id: data["id"], external_id: data["externalId"], name: data["name"], ) end |