Class: PayPal::Common::ResponseEnvelope

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/paypal/common/response_envelope.rb

Instance Attribute Summary collapse

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

#ackObject

Returns the value of attribute ack.



6
7
8
# File 'lib/paypal/common/response_envelope.rb', line 6

def ack
  @ack
end

#buildObject

Returns the value of attribute build.



7
8
9
# File 'lib/paypal/common/response_envelope.rb', line 7

def build
  @build
end

#correlation_idObject

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

#timestampObject

Returns the value of attribute timestamp.



5
6
7
# File 'lib/paypal/common/response_envelope.rb', line 5

def timestamp
  @timestamp
end

Instance Method Details

#set_timestamp(value) ⇒ Object



14
15
16
17
# File 'lib/paypal/common/response_envelope.rb', line 14

def set_timestamp(value)
  self.timestamp = Time.parse(value)
rescue
end

#success?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/paypal/common/response_envelope.rb', line 10

def success?
  self.ack == 'Success'
end