Class: Etna::Clients::Polyphemus::ConfigurationResponse
- Inherits:
-
Object
- Object
- Etna::Clients::Polyphemus::ConfigurationResponse
- Defined in:
- lib/etna/clients/polyphemus/models.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #environment ⇒ Object
- #environment_configuration(env = environment) ⇒ Object
- #environments ⇒ Object
-
#initialize(raw = '') ⇒ ConfigurationResponse
constructor
A new instance of ConfigurationResponse.
Constructor Details
#initialize(raw = '') ⇒ ConfigurationResponse
Returns a new instance of ConfigurationResponse.
18 19 20 |
# File 'lib/etna/clients/polyphemus/models.rb', line 18 def initialize(raw = '') @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
16 17 18 |
# File 'lib/etna/clients/polyphemus/models.rb', line 16 def raw @raw end |
Instance Method Details
#environment ⇒ Object
22 23 24 |
# File 'lib/etna/clients/polyphemus/models.rb', line 22 def environment @raw.keys.first end |
#environment_configuration(env = environment) ⇒ Object
30 31 32 |
# File 'lib/etna/clients/polyphemus/models.rb', line 30 def environment_configuration(env = environment) EnvironmentConfiguration.new(@raw[env]) end |
#environments ⇒ Object
26 27 28 |
# File 'lib/etna/clients/polyphemus/models.rb', line 26 def environments @raw.keys end |