Class: Epayco::Resource
- Inherits:
-
Object
- Object
- Epayco::Resource
- Includes:
- Operations
- Defined in:
- lib/epayco/resources.rb
Direct Known Subclasses
Bank, Cash, Charge, Customers, Daviplata, Plan, Safetypay, Subscriptions, Token
Class Method Summary collapse
-
.switch ⇒ Object
Case switch secure or api.
-
.url(id = nil) ⇒ Object
Def url endpoint.
Methods included from Operations
Class Method Details
.switch ⇒ Object
Case switch secure or api
13 14 15 |
# File 'lib/epayco/resources.rb', line 13 def self.switch self.url == "bank" || self.url == "cash" ? true : false end |
.url(id = nil) ⇒ Object
Def url endpoint
8 9 10 |
# File 'lib/epayco/resources.rb', line 8 def self.url id=nil self.name.split('::').last.downcase end |