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.



162
163
164
# File 'lib/etna/clients/magma/models.rb', line 162

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

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



160
161
162
# File 'lib/etna/clients/magma/models.rb', line 160

def raw
  @raw
end

Instance Method Details

#answerObject



166
167
168
# File 'lib/etna/clients/magma/models.rb', line 166

def answer
  raw['answer']
end

#formatObject



170
171
172
# File 'lib/etna/clients/magma/models.rb', line 170

def format
  raw['format']
end

#typeObject



174
175
176
# File 'lib/etna/clients/magma/models.rb', line 174

def type
  raw['type']
end