module OmiseTestCards
Constants
- VERSION
Public Class Methods
define_test_cards_to_omise()
click to toggle source
# File lib/omise_test_cards.rb, line 10 def self.define_test_cards_to_omise if Object.const_defined?(:Omise) Omise.define_singleton_method(:test_cards) { @test_cards ||= Cards.new.test_cards } else puts "you need to require 'omise' then try it again" end end
test_cards()
click to toggle source
# File lib/omise_test_cards.rb, line 6 def self.test_cards @test_cards ||= Cards.new.test_cards end