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.



395
396
397
# File 'lib/etna/clients/magma/models.rb', line 395

def initialize(raw = {})
  @raw = raw
end

Instance Attribute Details

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

#attributesObject



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_keysObject



399
400
401
# File 'lib/etna/clients/magma/models.rb', line 399

def dictionary_keys
  raw.keys
end

#dictionary_modelObject



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_nameObject



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