Sha256: 0910408cffe8c0c93478873f6371325946d2aad019ba8f60b441f8ea46762dd2
Contents?: true
Size: 653 Bytes
Versions: 6
Compression:
Stored size: 653 Bytes
Contents
require "omise/object" module Omise class Capability < OmiseObject self.endpoint = "/capability" singleton! PaymentMethod = Struct.new( :object, :name, :currencies, :card_brands, :installment_terms ) def self.resource_key Omise.public_api_key end def payment_methods self["payment_methods"].map do |payment_method| PaymentMethod.new( payment_method["object"], payment_method["name"], payment_method["currencies"], payment_method["card_brands"], payment_method["installment_terms"] ) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems