class Omise::Transfer

Public Class Methods

create(attributes = {}) click to toggle source
# File lib/omise/transfer.rb, line 17
def self.create(attributes = {})
  new resource(location, attributes).post(attributes)
end
list(attributes = {}) click to toggle source
# File lib/omise/transfer.rb, line 25
def self.list(attributes = {})
  List.new resource(location, attributes).get(attributes)
end
retrieve(id, attributes = {}) click to toggle source
# File lib/omise/transfer.rb, line 21
def self.retrieve(id, attributes = {})
  new resource(location(id), attributes).get(attributes)
end
schedule(attributes = {}) click to toggle source
# File lib/omise/transfer.rb, line 13
def self.schedule(attributes = {})
  Scheduler.new(:transfer, attributes)
end

Public Instance Methods

bank_account() click to toggle source
# File lib/omise/transfer.rb, line 49
def bank_account
  if !defined?(BankAccount)
    require "omise/bank_account"
  end

  expand_attribute BankAccount, "bank_account"
end
destroy(attributes = {}) click to toggle source
# File lib/omise/transfer.rb, line 37
def destroy(attributes = {})
  assign_attributes resource(attributes).delete
end
recipient(options = {}) click to toggle source
# File lib/omise/transfer.rb, line 41
def recipient(options = {})
  if !defined?(Recipient)
    require "omise/recipient"
  end

  expand_attribute Recipient, "recipient", options
end
reload(attributes = {}) click to toggle source
# File lib/omise/transfer.rb, line 29
def reload(attributes = {})
  assign_attributes resource(attributes).get(attributes)
end
update(attributes = {}) click to toggle source
# File lib/omise/transfer.rb, line 33
def update(attributes = {})
  assign_attributes resource(attributes).patch(attributes)
end