Class: Tickethub::Supplier::Order
- Defined in:
- lib/tickethub/supplier/order.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
#==, #[], #[]=, all, association, attribute, attributes, collection, descendants, #destroy, dump_value, #eql?, #errors, #hash, inherited, #initialize, #inspect, load, #load, load_value, path, polymorphic, register_type, registered_types, #reload!, #respond_to?, scope, scopes, serialize, singleton?, #to_h, #to_param, #to_s, #update, #valid?
Constructor Details
This class inherits a constructor from Tickethub::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Tickethub::Resource
Instance Method Details
#confirm(params = {}) ⇒ Object
44 45 46 |
# File 'lib/tickethub/supplier/order.rb', line 44 def confirm(params = {}) self.load @endpoint[:confirm].post(params) end |
#restore(params = {}) ⇒ Object
40 41 42 |
# File 'lib/tickethub/supplier/order.rb', line 40 def restore(params = {}) self.load @endpoint[:restore].post(params) end |