class Paytureman::PaymentDescription
Public Class Methods
new(description = {})
click to toggle source
# File lib/payments/payment_new.rb, line 12 def initialize(description = {}) @description = description.dup @description.assert_valid_keys(*VALID_OPTIONS) end
Public Instance Methods
to_h()
click to toggle source
# File lib/payments/payment_new.rb, line 17 def to_h @description.select { |_, v| v.present? } end