Class: Sdp::RampExecution

Inherits:
Struct
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



51
52
53
# File 'lib/sdp/resources/ramps.rb', line 51

def id
  @id
end

#payment_instructionsObject

Returns the value of attribute payment_instructions

Returns:

  • (Object)

    the current value of payment_instructions



51
52
53
# File 'lib/sdp/resources/ramps.rb', line 51

def payment_instructions
  @payment_instructions
end

#providerObject

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



51
52
53
# File 'lib/sdp/resources/ramps.rb', line 51

def provider
  @provider
end

#redirect_urlObject

Returns the value of attribute redirect_url

Returns:

  • (Object)

    the current value of redirect_url



51
52
53
# File 'lib/sdp/resources/ramps.rb', line 51

def redirect_url
  @redirect_url
end

#referenceObject

Returns the value of attribute reference

Returns:

  • (Object)

    the current value of reference



51
52
53
# File 'lib/sdp/resources/ramps.rb', line 51

def reference
  @reference
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of 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