Class: PayPal::Common::ResponseEnvelope
- Inherits:
-
Object
- Object
- PayPal::Common::ResponseEnvelope
- Includes:
- Base
- Defined in:
- lib/paypal/common/response_envelope.rb
Instance Attribute Summary collapse
-
#ack ⇒ Object
Returns the value of attribute ack.
-
#build ⇒ Object
Returns the value of attribute build.
-
#correlation_id ⇒ Object
Returns the value of attribute correlation_id.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
Methods included from Base
#after_initialize, #build_datetime, #build_value, #camelize, #hash_keys, #initialize, #request, #to_hash, #to_json, #underscore
Instance Attribute Details
#ack ⇒ Object
Returns the value of attribute ack.
6 7 8 |
# File 'lib/paypal/common/response_envelope.rb', line 6 def ack @ack end |
#build ⇒ Object
Returns the value of attribute build.
7 8 9 |
# File 'lib/paypal/common/response_envelope.rb', line 7 def build @build end |
#correlation_id ⇒ Object
Returns the value of attribute correlation_id.
8 9 10 |
# File 'lib/paypal/common/response_envelope.rb', line 8 def correlation_id @correlation_id end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/paypal/common/response_envelope.rb', line 5 def end |
Instance Method Details
#set_timestamp(value) ⇒ Object
14 15 16 17 |
# File 'lib/paypal/common/response_envelope.rb', line 14 def (value) self. = Time.parse(value) rescue end |
#success? ⇒ Boolean
10 11 12 |
# File 'lib/paypal/common/response_envelope.rb', line 10 def success? self.ack == 'Success' end |