Class: TD::Types::LabeledPricePart

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/labeled_price_part.rb

Overview

Portion of the price of a product (e.g., "delivery cost", "tax amount").

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#amountInteger

Currency amount in minimal quantity of the currency.

Returns:

  • (Integer)

    the current value of amount



6
7
8
# File 'lib/tdlib/types/labeled_price_part.rb', line 6

def amount
  @amount
end

#labelString

Label for this portion of the product price.

Returns:

  • (String)

    the current value of label



6
7
8
# File 'lib/tdlib/types/labeled_price_part.rb', line 6

def label
  @label
end