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.



384
385
386
# File 'lib/etna/clients/magma/models.rb', line 384

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

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



382
383
384
# File 'lib/etna/clients/magma/models.rb', line 382

def raw
  @raw
end

Instance Method Details

#attributesObject



408
409
410
# File 'lib/etna/clients/magma/models.rb', line 408

def attributes
  raw['attributes']
end

#attributes=(val) ⇒ Object



412
413
414
# File 'lib/etna/clients/magma/models.rb', line 412

def attributes=(val)
  @raw['attributes'] = val
end

#dictionary_keysObject



388
389
390
# File 'lib/etna/clients/magma/models.rb', line 388

def dictionary_keys
  raw.keys
end

#dictionary_modelObject



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

def dictionary_model
  raw['dictionary_model']
end

#dictionary_model=(val) ⇒ Object



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

def dictionary_model=(val)
  @raw['dictionary_model'] = val
end

#model_nameObject



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

def model_name
  raw['model_name']
end

#model_name=(val) ⇒ Object



404
405
406
# File 'lib/etna/clients/magma/models.rb', line 404

def model_name=(val)
  @raw['model_name'] = val
end