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.



392
393
394
# File 'lib/etna/clients/magma/models.rb', line 392

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

Instance Attribute Details

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

#attributesObject



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_keysObject



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

def dictionary_keys
  raw.keys
end

#dictionary_modelObject



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_nameObject



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