Class: Etna::Clients::Magma::Dictionary

Inherits:
Object
  • Object
show all
Defined in:
lib/etna/clients/magma/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rawObject (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

#attributesObject



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_keysObject



441
442
443
# File 'lib/etna/clients/magma/models.rb', line 441

def dictionary_keys
  raw.keys
end

#dictionary_modelObject



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_nameObject



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