Class: Paytureman::PaymentDescription
- Inherits:
-
Struct
- Object
- Struct
- Paytureman::PaymentDescription
- Defined in:
- lib/payments/payment_new.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
Returns the value of attribute language.
-
#product ⇒ Object
Returns the value of attribute product.
-
#template_tag ⇒ Object
Returns the value of attribute template_tag.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
Instance Attribute Details
#language ⇒ Object
Returns the value of attribute language
3 4 5 |
# File 'lib/payments/payment_new.rb', line 3 def language @language end |
#product ⇒ Object
Returns the value of attribute product
3 4 5 |
# File 'lib/payments/payment_new.rb', line 3 def product @product end |
#template_tag ⇒ Object
Returns the value of attribute template_tag
3 4 5 |
# File 'lib/payments/payment_new.rb', line 3 def template_tag @template_tag end |
#total ⇒ Object
Returns the value of attribute total
3 4 5 |
# File 'lib/payments/payment_new.rb', line 3 def total @total end |
Instance Method Details
#to_h ⇒ Object
5 6 7 |
# File 'lib/payments/payment_new.rb', line 5 def to_h super.select { |_, v| v.present? } end |