Class: Omise::Token
Class Method Summary
collapse
Instance 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
.create(attributes = {}) ⇒ Object
14
15
16
|
# File 'lib/omise/token.rb', line 14
def self.create(attributes = {})
new resource(location, attributes).post(attributes)
end
|
.preprocess_attributes!(attributes) ⇒ Object
22
23
24
|
# File 'lib/omise/token.rb', line 22
def self.preprocess_attributes!(attributes)
end
|
.retrieve(id, attributes = {}) ⇒ Object
10
11
12
|
# File 'lib/omise/token.rb', line 10
def self.retrieve(id, attributes = {})
new resource(location(id), attributes).get(attributes)
end
|
Instance Method Details
#reload(attributes = {}) ⇒ Object
18
19
20
|
# File 'lib/omise/token.rb', line 18
def reload(attributes = {})
assign_attributes resource(attributes).get(attributes)
end
|