Class: Tray::Checkout::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

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

#customerObject

Returns the value of attribute customer.



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

def customer
  @customer
end

#errorsObject

Returns the value of attribute errors.



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

def errors
  @errors
end

#paymentObject

Returns the value of attribute payment.



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

def payment
  @payment
end

#peopleObject

Returns the value of attribute people.



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

def people
  @people
end

#seconds_redirectObject

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_contactObject

Returns the value of attribute service_contact.



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

def service_contact
  @service_contact
end

#successObject 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

#transactionObject

Returns the value of attribute transaction.



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

def transaction
  @transaction
end