class SelfPay::BilletApi

Attributes

client[R]

Public Class Methods

new(client) click to toggle source
# File lib/SelfPay/billet_api.rb, line 5
def initialize(client)
  @client = client
end

Public Instance Methods

create(billet) click to toggle source
# File lib/SelfPay/billet_api.rb, line 9
def create(billet)
  Resource::Billet.new client, client.post("/Billet", billet)
end
show(billet_id) click to toggle source
# File lib/SelfPay/billet_api.rb, line 13
def show(billet_id)
  Resource::Billet.new client.get("Billet/#{billet_id}")
end