Class: Typekitable::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/typekitable/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from_hash) ⇒ Response

Returns a new instance of Response.



62
63
64
# File 'lib/typekitable/request.rb', line 62

def initialize(from_hash)
  super(*from_hash.values_at(*members))
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



61
62
63
# File 'lib/typekitable/request.rb', line 61

def body
  @body
end

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



61
62
63
# File 'lib/typekitable/request.rb', line 61

def code
  @code
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



61
62
63
# File 'lib/typekitable/request.rb', line 61

def message
  @message
end