Class: Bootpay::Response
- Inherits:
-
Object
- Object
- Bootpay::Response
- Defined in:
- lib/response.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(success = true, data = {}) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
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
#data ⇒ Object (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
10 11 12 |
# File 'lib/response.rb', line 10 def success? @success end |