class Plivo::Currency
Attributes
Public Class Methods
Source
# File lib/plivo/template.rb, line 75 def initialize(fallback_value: nil, currency_code: nil, amount_1000: nil) @fallback_value = fallback_value @currency_code = currency_code @amount_1000 = amount_1000 end
Public Instance Methods
Source
# File lib/plivo/template.rb, line 81 def to_hash { fallback_value: @fallback_value, currency_code: @currency_code, amount_1000: @amount_1000 }.reject { |_, v| v.nil? } end