class Omise::DocumentList
Public Instance Methods
retrieve(id, attributes = {})
click to toggle source
# File lib/omise/document_list.rb, line 5 def retrieve(id, attributes = {}) if !defined?(Document) require "omise/document" end Document.new self.class.resource(location(id), attributes).get(attributes) end
upload(file)
click to toggle source
# File lib/omise/document_list.rb, line 13 def upload(file) if !defined?(Document) require "omise/document" end attributes = { file: file } Document.new self.class.resource(location, attributes).post(attributes) end