Class: Etna::Clients::Gnomon::Rules
- Inherits:
-
Object
- Object
- Etna::Clients::Gnomon::Rules
- Defined in:
- lib/etna/clients/gnomon/models.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #[](model_name) ⇒ Object
-
#initialize(raw = {}) ⇒ Rules
constructor
A new instance of Rules.
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
#raw ⇒ Object (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 |