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.



39
40
41
# File 'lib/etna/clients/polyphemus/models.rb', line 39

def initialize(raw = '')
  @raw = raw
end

Instance Attribute Details

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

#environmentObject



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

#environmentsObject



47
48
49
# File 'lib/etna/clients/polyphemus/models.rb', line 47

def environments
  @raw.keys
end