Class: Epayco::Resource

Inherits:
Object
  • Object
show all
Includes:
Operations
Defined in:
lib/epayco/resources.rb

Direct Known Subclasses

Bank, Cash, Charge, Customers, Daviplata, Plan, Safetypay, Subscriptions, Token

Class Method Summary collapse

Methods included from Operations

included

Class Method Details

.switchObject

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