Module: GlobalCollect::Const::PaymentProduct

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

Defined Under Namespace

Classes: Product

Constant Summary

Class Method Summary (collapse)

Class Method Details

+ (Object) from_code(code)



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

+ (Object) from_sym(sym)



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

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