Module: GlobalCollect::Const::PaymentProduct

Defined in:
lib/global_collect/const/payment_product.rb

Defined Under Namespace

Classes: Product

Class Method Summary collapse

Class Method Details

.from_code(code) ⇒ Object



7
8
9
10
# File 'lib/global_collect/const/payment_product.rb', line 7

def self.from_code(code)
  sym = PRODUCTS.detect{|k,v| v.first == code.to_i }.first
  from_sym(sym)
end

.from_sym(sym) ⇒ Object



3
4
5
# File 'lib/global_collect/const/payment_product.rb', line 3

def self.from_sym(sym)
  info(sym)
end