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.
395 396 397 |
# File 'lib/etna/clients/magma/models.rb', line 395 def initialize(raw = {}) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
393 394 395 |
# File 'lib/etna/clients/magma/models.rb', line 393 def raw @raw end |
Instance Method Details
#attributes ⇒ Object
419 420 421 |
# File 'lib/etna/clients/magma/models.rb', line 419 def attributes raw['attributes'] end |
#attributes=(val) ⇒ Object
423 424 425 |
# File 'lib/etna/clients/magma/models.rb', line 423 def attributes=(val) @raw['attributes'] = val end |
#dictionary_keys ⇒ Object
399 400 401 |
# File 'lib/etna/clients/magma/models.rb', line 399 def dictionary_keys raw.keys end |
#dictionary_model ⇒ Object
403 404 405 |
# File 'lib/etna/clients/magma/models.rb', line 403 def dictionary_model raw['dictionary_model'] end |
#dictionary_model=(val) ⇒ Object
407 408 409 |
# File 'lib/etna/clients/magma/models.rb', line 407 def dictionary_model=(val) @raw['dictionary_model'] = val end |
#model_name ⇒ Object
411 412 413 |
# File 'lib/etna/clients/magma/models.rb', line 411 def model_name raw['model_name'] end |
#model_name=(val) ⇒ Object
415 416 417 |
# File 'lib/etna/clients/magma/models.rb', line 415 def model_name=(val) @raw['model_name'] = val end |