Class: Tray::Checkout::Response
- Inherits:
-
Object
- Object
- Tray::Checkout::Response
- Defined in:
- lib/tray/checkout/response.rb
Instance Attribute Summary collapse
-
#customer ⇒ Object
Returns the value of attribute customer.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#payment ⇒ Object
Returns the value of attribute payment.
-
#people ⇒ Object
Returns the value of attribute people.
-
#seconds_redirect ⇒ Object
Returns the value of attribute seconds_redirect.
-
#service_contact ⇒ Object
Returns the value of attribute service_contact.
-
#success ⇒ Object
(also: #success?)
Returns the value of attribute success.
-
#transaction ⇒ Object
Returns the value of attribute transaction.
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
16 17 18 19 |
# File 'lib/tray/checkout/response.rb', line 16 def initialize @success = false @errors = [] end |
Instance Attribute Details
#customer ⇒ Object
Returns the value of attribute customer.
5 6 7 |
# File 'lib/tray/checkout/response.rb', line 5 def customer @customer end |
#errors ⇒ Object
Returns the value of attribute errors.
5 6 7 |
# File 'lib/tray/checkout/response.rb', line 5 def errors @errors end |
#payment ⇒ Object
Returns the value of attribute payment.
5 6 7 |
# File 'lib/tray/checkout/response.rb', line 5 def payment @payment end |
#people ⇒ Object
Returns the value of attribute people.
5 6 7 |
# File 'lib/tray/checkout/response.rb', line 5 def people @people end |
#seconds_redirect ⇒ Object
Returns the value of attribute seconds_redirect.
5 6 7 |
# File 'lib/tray/checkout/response.rb', line 5 def seconds_redirect @seconds_redirect end |
#service_contact ⇒ Object
Returns the value of attribute service_contact.
5 6 7 |
# File 'lib/tray/checkout/response.rb', line 5 def service_contact @service_contact end |
#success ⇒ Object Also known as: success?
Returns the value of attribute success.
5 6 7 |
# File 'lib/tray/checkout/response.rb', line 5 def success @success end |
#transaction ⇒ Object
Returns the value of attribute transaction.
5 6 7 |
# File 'lib/tray/checkout/response.rb', line 5 def transaction @transaction end |