Class: Sdp::RampExecution
- Inherits:
-
Struct
- Object
- Struct
- Sdp::RampExecution
- Defined in:
- lib/sdp/resources/ramps.rb
Overview
The result of executing a ramp: SDP’s ramp record with the redirect/checkout URL and a provider reference for reconciliation.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#payment_instructions ⇒ Object
Returns the value of attribute payment_instructions.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
51 52 53 |
# File 'lib/sdp/resources/ramps.rb', line 51 def id @id end |
#payment_instructions ⇒ Object
Returns the value of attribute payment_instructions
51 52 53 |
# File 'lib/sdp/resources/ramps.rb', line 51 def payment_instructions @payment_instructions end |
#provider ⇒ Object
Returns the value of attribute provider
51 52 53 |
# File 'lib/sdp/resources/ramps.rb', line 51 def provider @provider end |
#redirect_url ⇒ Object
Returns the value of attribute redirect_url
51 52 53 |
# File 'lib/sdp/resources/ramps.rb', line 51 def redirect_url @redirect_url end |
#reference ⇒ Object
Returns the value of attribute reference
51 52 53 |
# File 'lib/sdp/resources/ramps.rb', line 51 def reference @reference end |
#status ⇒ Object
Returns the value of attribute status
51 52 53 |
# File 'lib/sdp/resources/ramps.rb', line 51 def status @status end |
Class Method Details
.from_hash(hash) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/sdp/resources/ramps.rb', line 53 def self.from_hash(hash) hash ||= {} new( id: hash[:id], provider: hash[:provider], status: hash[:status], redirect_url: hash[:redirect_url], payment_instructions: hash[:payment_instructions], reference: hash[:reference] ) end |