Class: Paytureman::PaymentDescription

Inherits:
Struct
  • Object
show all
Defined in:
lib/payments/payment_new.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



3
4
5
# File 'lib/payments/payment_new.rb', line 3

def language
  @language
end

#productObject

Returns the value of attribute product

Returns:

  • (Object)

    the current value of product



3
4
5
# File 'lib/payments/payment_new.rb', line 3

def product
  @product
end

#template_tagObject

Returns the value of attribute template_tag

Returns:

  • (Object)

    the current value of template_tag



3
4
5
# File 'lib/payments/payment_new.rb', line 3

def template_tag
  @template_tag
end

#totalObject

Returns the value of attribute total

Returns:

  • (Object)

    the current value of total



3
4
5
# File 'lib/payments/payment_new.rb', line 3

def total
  @total
end

Instance Method Details

#to_hObject



5
6
7
# File 'lib/payments/payment_new.rb', line 5

def to_h
  super.select { |_, v| v.present? }
end