Class: LlamaHair::Types::LlamaResponse

Inherits:
Struct
  • Object
show all
Defined in:
lib/llamahair/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



23
24
25
# File 'lib/llamahair/types.rb', line 23

def id
  @id
end

#identifierObject

Returns the value of attribute identifier

Returns:

  • (Object)

    the current value of identifier



23
24
25
# File 'lib/llamahair/types.rb', line 23

def identifier
  @identifier
end

#responseObject

Returns the value of attribute response

Returns:

  • (Object)

    the current value of response



23
24
25
# File 'lib/llamahair/types.rb', line 23

def response
  @response
end

#timestampObject

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



23
24
25
# File 'lib/llamahair/types.rb', line 23

def timestamp
  @timestamp
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



23
24
25
# File 'lib/llamahair/types.rb', line 23

def type
  @type
end