Class: Etna::Clients::Polyphemus::ConfigurationResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rawObject (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

#environmentObject



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

#environmentsObject



26
27
28
# File 'lib/etna/clients/polyphemus/models.rb', line 26

def environments
  @raw.keys
end