Class: LlamaHair::Types::LlamaResponse
- Inherits:
-
Struct
- Object
- Struct
- LlamaHair::Types::LlamaResponse
- Defined in:
- lib/llamahair/types.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#response ⇒ Object
Returns the value of attribute response.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LlamaResponse
constructor
A new instance of LlamaResponse.
Constructor Details
#initialize(**args) ⇒ LlamaResponse
Returns a new instance of LlamaResponse.
24 25 26 27 28 |
# File 'lib/llamahair/types.rb', line 24 def initialize(**args) super self.type ||= "response" self.response = LlamaResponseData.new(**(response || {})) end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
23 24 25 |
# File 'lib/llamahair/types.rb', line 23 def id @id end |
#identifier ⇒ Object
Returns the value of attribute identifier
23 24 25 |
# File 'lib/llamahair/types.rb', line 23 def identifier @identifier end |
#response ⇒ Object
Returns the value of attribute response
23 24 25 |
# File 'lib/llamahair/types.rb', line 23 def response @response end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
23 24 25 |
# File 'lib/llamahair/types.rb', line 23 def @timestamp end |
#type ⇒ Object
Returns the value of attribute type
23 24 25 |
# File 'lib/llamahair/types.rb', line 23 def type @type end |