Sha256: 62f363f2e1a9d543b361cb82265c49c7c0c0e6a35e640d996c4dc2382c4e7a43
Contents?: true
Size: 828 Bytes
Versions: 9
Compression:
Stored size: 828 Bytes
Contents
module Killbill module Plugin class PaymentMethodProperty attr_reader :key, :value, :is_updatable def initialize(key, value, is_updatable) @key = key @value = value @is_updatable = is_updatable end end class PaymentMethodResponse attr_reader :external_payment_method_id, :is_default, :properties def initialize(external_payment_method_id, is_default, properties) @external_payment_method_id = external_payment_method_id @is_default = is_default @properties = properties end def value(key) (@properties || []).each do |prop| return prop.value if prop.key == key end nil end end end end
Version data entries
9 entries across 9 versions & 1 rubygems