Class: Etna::Clients::Magma::QueryResponse
- Inherits:
-
Object
- Object
- Etna::Clients::Magma::QueryResponse
- Defined in:
- lib/etna/clients/magma/models.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #answer ⇒ Object
- #format ⇒ Object
-
#initialize(raw = {}) ⇒ QueryResponse
constructor
A new instance of QueryResponse.
- #type ⇒ Object
Constructor Details
#initialize(raw = {}) ⇒ QueryResponse
Returns a new instance of QueryResponse.
170 171 172 |
# File 'lib/etna/clients/magma/models.rb', line 170 def initialize(raw = {}) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
168 169 170 |
# File 'lib/etna/clients/magma/models.rb', line 168 def raw @raw end |
Instance Method Details
#answer ⇒ Object
174 175 176 |
# File 'lib/etna/clients/magma/models.rb', line 174 def answer raw['answer'] end |
#format ⇒ Object
178 179 180 |
# File 'lib/etna/clients/magma/models.rb', line 178 def format raw['format'] end |
#type ⇒ Object
182 183 184 |
# File 'lib/etna/clients/magma/models.rb', line 182 def type raw['type'] end |