Class: Etna::Clients::Magma::Dictionary
- Inherits:
-
Object
- Object
- Etna::Clients::Magma::Dictionary
- Defined in:
- lib/etna/clients/magma/models.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #attributes ⇒ Object
- #attributes=(val) ⇒ Object
- #dictionary_keys ⇒ Object
- #dictionary_model ⇒ Object
- #dictionary_model=(val) ⇒ Object
-
#initialize(raw = {}) ⇒ Dictionary
constructor
A new instance of Dictionary.
- #model_name ⇒ Object
- #model_name=(val) ⇒ Object
Constructor Details
#initialize(raw = {}) ⇒ Dictionary
Returns a new instance of Dictionary.
437 438 439 |
# File 'lib/etna/clients/magma/models.rb', line 437 def initialize(raw = {}) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
435 436 437 |
# File 'lib/etna/clients/magma/models.rb', line 435 def raw @raw end |
Instance Method Details
#attributes ⇒ Object
461 462 463 |
# File 'lib/etna/clients/magma/models.rb', line 461 def attributes raw['attributes'] end |
#attributes=(val) ⇒ Object
465 466 467 |
# File 'lib/etna/clients/magma/models.rb', line 465 def attributes=(val) @raw['attributes'] = val end |
#dictionary_keys ⇒ Object
441 442 443 |
# File 'lib/etna/clients/magma/models.rb', line 441 def dictionary_keys raw.keys end |
#dictionary_model ⇒ Object
445 446 447 |
# File 'lib/etna/clients/magma/models.rb', line 445 def dictionary_model raw['dictionary_model'] end |
#dictionary_model=(val) ⇒ Object
449 450 451 |
# File 'lib/etna/clients/magma/models.rb', line 449 def dictionary_model=(val) @raw['dictionary_model'] = val end |
#model_name ⇒ Object
453 454 455 |
# File 'lib/etna/clients/magma/models.rb', line 453 def model_name raw['model_name'] end |
#model_name=(val) ⇒ Object
457 458 459 |
# File 'lib/etna/clients/magma/models.rb', line 457 def model_name=(val) @raw['model_name'] = val end |