Class: Shipay::WalletList

Inherits:
Model show all
Defined in:
lib/shipay/resources/wallet_list.rb

Constant Summary

Constants inherited from ShipayObject

ShipayObject::RESOURCES

Instance Attribute Summary

Attributes inherited from ShipayObject

#attributes

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

.allObject



7
8
9
# File 'lib/shipay/resources/wallet_list.rb', line 7

def self.all()
  Shipay::Request.get(url).call(class_name)
end

.url(*params) ⇒ Object



3
4
5
# File 'lib/shipay/resources/wallet_list.rb', line 3

def self.url(*params)
  ["/v1/#{ CGI.escape underscored_class_name }s", *params].join '/'
end