Class: Shipay::Wallet
- Inherits:
-
Model
- Object
- ShipayObject
- Model
- Shipay::Wallet
- Defined in:
- lib/shipay/resources/wallet.rb
Constant Summary
Constants inherited from ShipayObject
Instance Attribute Summary
Attributes inherited from ShipayObject
Class Method Summary collapse
Methods inherited from Model
#class_name, class_name, #create, create, #fetch, find_by_id, #primary_key, #save, underscored_class_name, #url
Methods inherited from ShipayObject
#==, #[]=, convert, #empty?, #initialize, #respond_to?, #to_hash, #unsaved_attributes
Constructor Details
This class inherits a constructor from Shipay::ShipayObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Shipay::ShipayObject
Class Method Details
.all ⇒ Object
19 20 21 |
# File 'lib/shipay/resources/wallet.rb', line 19 def self.all() Shipay::Request.get(url).call(class_name) end |
.url(*params) ⇒ Object
15 16 17 |
# File 'lib/shipay/resources/wallet.rb', line 15 def self.url(*params) ["/v1/#{ CGI.escape underscored_class_name }s", *params].join '/' end |