Class: SignWell::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/sign_well/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ Response

Returns a new instance of Response.



7
8
9
# File 'lib/sign_well/response.rb', line 7

def initialize(body)
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/sign_well/response.rb', line 5

def body
  @body
end

Instance Method Details

#to_objectObject



11
12
13
# File 'lib/sign_well/response.rb', line 11

def to_object
  to_ostruct(body)
end