Class: Omise::Transaction

Inherits:
OmiseObject show all
Defined in:
lib/omise/transaction.rb

Class Method Summary collapse

Methods inherited from OmiseObject

location, resource

Methods included from Attributes

#[], #as_json, #assign_attributes, #attributes, #destroyed?, #initialize, #key?, #location, #method_missing, #predicate?, #respond_to_missing?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Omise::Attributes

Class Method Details

.list(attributes = {}) ⇒ Object



12
13
14
# File 'lib/omise/transaction.rb', line 12

def self.list(attributes = {})
  List.new resource(location, attributes).get(attributes)
end

.retrieve(id = nil, attributes = {}) ⇒ Object



8
9
10
# File 'lib/omise/transaction.rb', line 8

def self.retrieve(id = nil, attributes = {})
  new resource(location(id), attributes).get(attributes)
end