Class: Orias::Mandator
Overview
Dedicated to Orias mandators objects handling
Instance Attribute Summary collapse
-
#denomination ⇒ Object
Returns the value of attribute denomination.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#siren ⇒ Object
Returns the value of attribute siren.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Mandator
constructor
Initialize an Orias::Mandator instance.
Constructor Details
#initialize(attributes = {}) ⇒ Mandator
Initialize an Orias::Mandator instance
8 9 10 11 12 13 |
# File 'lib/orias/mandator.rb', line 8 def initialize(attributes = {}) @raw = attributes @siren = @raw.dig('siren') @denomination = @raw.dig('denomination') end |
Instance Attribute Details
#denomination ⇒ Object
Returns the value of attribute denomination.
5 6 7 |
# File 'lib/orias/mandator.rb', line 5 def denomination @denomination end |
#raw ⇒ Object
Returns the value of attribute raw.
5 6 7 |
# File 'lib/orias/mandator.rb', line 5 def raw @raw end |
#siren ⇒ Object
Returns the value of attribute siren.
5 6 7 |
# File 'lib/orias/mandator.rb', line 5 def siren @siren end |