Class: Etna::Clients::Gnomon::Rules

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw = {}) ⇒ Rules

Returns a new instance of Rules.



23
24
25
# File 'lib/etna/clients/gnomon/models.rb', line 23

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

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



21
22
23
# File 'lib/etna/clients/gnomon/models.rb', line 21

def raw
  @raw
end

Instance Method Details

#[](model_name) ⇒ Object



27
28
29
# File 'lib/etna/clients/gnomon/models.rb', line 27

def [](model_name)
  raw[model_name.to_s]
end