Class: Cadenya::Types::SubjectReference
- Inherits:
-
Object
- Object
- Cadenya::Types::SubjectReference
- 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) ⇒ SubjectReference
constructor
A new instance of SubjectReference.
- #to_h ⇒ Object
Constructor Details
#initialize(id: nil, external_id: nil, name: nil) ⇒ SubjectReference
Returns a new instance of SubjectReference.
5348 5349 5350 5351 5352 |
# File 'lib/cadenya/types.rb', line 5348 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.
5346 5347 5348 |
# File 'lib/cadenya/types.rb', line 5346 def external_id @external_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5346 5347 5348 |
# File 'lib/cadenya/types.rb', line 5346 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5346 5347 5348 |
# File 'lib/cadenya/types.rb', line 5346 def name @name end |
Class Method Details
.from_json(data) ⇒ Object
5354 5355 5356 5357 5358 5359 5360 |
# File 'lib/cadenya/types.rb', line 5354 def self.from_json(data) new( id: data["id"], external_id: data["externalId"], name: data["name"], ) end |