class Plivo::Currency
Attributes
amount_1000[RW]
currency_code[RW]
fallback_value[RW]
Public Class Methods
new(fallback_value: nil, currency_code: nil, amount_1000: nil)
click to toggle source
# File lib/plivo/template.rb, line 73 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
to_hash()
click to toggle source
# File lib/plivo/template.rb, line 79 def to_hash { fallback_value: @fallback_value, currency_code: @currency_code, amount_1000: @amount_1000 }.reject { |_, v| v.nil? } end