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.
39 40 41 |
# File 'lib/etna/clients/polyphemus/models.rb', line 39 def initialize(raw = '') @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
37 38 39 |
# File 'lib/etna/clients/polyphemus/models.rb', line 37 def raw @raw end |
Instance Method Details
#environment ⇒ Object
43 44 45 |
# File 'lib/etna/clients/polyphemus/models.rb', line 43 def environment @raw.keys.first end |
#environment_configuration(env = environment) ⇒ Object
51 52 53 |
# File 'lib/etna/clients/polyphemus/models.rb', line 51 def environment_configuration(env = environment) EnvironmentConfiguration.new(@raw[env]) end |
#environments ⇒ Object
47 48 49 |
# File 'lib/etna/clients/polyphemus/models.rb', line 47 def environments @raw.keys end |