Class: AllpayWebService::Base
- Inherits:
-
Object
- Object
- AllpayWebService::Base
show all
- Defined in:
- lib/allpay/const.rb
Class Method Summary
collapse
Class Method Details
.readable_keys ⇒ Object
3
4
5
6
7
8
|
# File 'lib/allpay/const.rb', line 3
def self.readable_keys
result = self.constants.map { |constant| "#{self.name}::#{constant}" }.join(", ")
position = result.rindex(", ")
result[position..position+1] = " or "
result
end
|
.values ⇒ Object
10
11
12
|
# File 'lib/allpay/const.rb', line 10
def self.values
self.constants.map { |constant| self.const_get(constant) }
end
|