Class: Etna::Clients::Magma::QueryResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw = {}) ⇒ QueryResponse

Returns a new instance of QueryResponse.



184
185
186
# File 'lib/etna/clients/magma/models.rb', line 184

def initialize(raw = {})
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



182
183
184
# File 'lib/etna/clients/magma/models.rb', line 182

def raw
  @raw
end

Instance Method Details

#answerObject



188
189
190
# File 'lib/etna/clients/magma/models.rb', line 188

def answer
  raw['answer']
end

#formatObject



192
193
194
# File 'lib/etna/clients/magma/models.rb', line 192

def format
  raw['format']
end

#typeObject



196
197
198
# File 'lib/etna/clients/magma/models.rb', line 196

def type
  raw['type']
end