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.



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

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

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



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

def raw
  @raw
end

Instance Method Details

#answerObject



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

def answer
  raw['answer']
end

#formatObject



177
178
179
# File 'lib/etna/clients/magma/models.rb', line 177

def format
  raw['format']
end

#typeObject



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

def type
  raw['type']
end