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.
392 393 394 |
# File 'lib/etna/clients/magma/models.rb', line 392 def initialize(raw = {}) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
390 391 392 |
# File 'lib/etna/clients/magma/models.rb', line 390 def raw @raw end |
Instance Method Details
#attributes ⇒ Object
416 417 418 |
# File 'lib/etna/clients/magma/models.rb', line 416 def attributes raw['attributes'] end |
#attributes=(val) ⇒ Object
420 421 422 |
# File 'lib/etna/clients/magma/models.rb', line 420 def attributes=(val) @raw['attributes'] = val end |
#dictionary_keys ⇒ Object
396 397 398 |
# File 'lib/etna/clients/magma/models.rb', line 396 def dictionary_keys raw.keys end |
#dictionary_model ⇒ Object
400 401 402 |
# File 'lib/etna/clients/magma/models.rb', line 400 def dictionary_model raw['dictionary_model'] end |
#dictionary_model=(val) ⇒ Object
404 405 406 |
# File 'lib/etna/clients/magma/models.rb', line 404 def dictionary_model=(val) @raw['dictionary_model'] = val end |
#model_name ⇒ Object
408 409 410 |
# File 'lib/etna/clients/magma/models.rb', line 408 def model_name raw['model_name'] end |
#model_name=(val) ⇒ Object
412 413 414 |
# File 'lib/etna/clients/magma/models.rb', line 412 def model_name=(val) @raw['model_name'] = val end |