Class: Tickethub::Supplier::Product
- Defined in:
- lib/tickethub/supplier/product.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
#resellers ⇒ Object
57 58 59 |
# File 'lib/tickethub/supplier/product.rb', line 57 def resellers Collection.new @endpoint['/supplier/resellers'], Supplier::Reseller, filters: { products: [id] } end |
#settings ⇒ Object
61 62 63 |
# File 'lib/tickethub/supplier/product.rb', line 61 def settings @endpoint[:settings].get.decoded end |