Class: Bootpay::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success = true, data = {}) ⇒ Response

Returns a new instance of Response.



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

def initialize(success = true, data = {})
  @success = success
  @data    = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'lib/response.rb', line 3

def data
  @data
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


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

def success?
  @success
end