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 the smallest units 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

#labelTD::Types::String

Label for this portion of the product price.

Returns:

  • (TD::Types::String)

    the current value of label



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

def label
  @label
end