class SelfPay::Resource::Billet

Attributes

client[R]
external_id[R]
payment_api[R]

Public Class Methods

new(client, response) click to toggle source
Calls superclass method
# File lib/SelfPay/resource/billet.rb, line 6
def initialize(client, response)
  super(response)
  @client = client

  if response.respond_to?(:external_id)
    @billet_api = BilletApi.new(client)
    @external_id = response.external_id
  end
end

Public Instance Methods

create_billet(billet) click to toggle source
# File lib/SelfPay/resource/billet.rb, line 16
def create_billet(billet)
  billet_api.create(billet)
end