Class: TD::Types::CollectibleItemInfo

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

Overview

Contains information about a collectible item and its last purchase.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#amountInteger

The paid amount, in the smallest units of the currency.

Returns:

  • (Integer)

    the current value of amount



10
11
12
# File 'lib/tdlib/types/collectible_item_info.rb', line 10

def amount
  @amount
end

#cryptocurrencyTD::Types::String

Cryptocurrency used to pay for the item.

Returns:

  • (TD::Types::String)

    the current value of cryptocurrency



10
11
12
# File 'lib/tdlib/types/collectible_item_info.rb', line 10

def cryptocurrency
  @cryptocurrency
end

#cryptocurrency_amountInteger

The paid amount, in the smallest units of the cryptocurrency.

Returns:

  • (Integer)

    the current value of cryptocurrency_amount



10
11
12
# File 'lib/tdlib/types/collectible_item_info.rb', line 10

def cryptocurrency_amount
  @cryptocurrency_amount
end

#currencyTD::Types::String

Currency for the paid amount.

Returns:

  • (TD::Types::String)

    the current value of currency



10
11
12
# File 'lib/tdlib/types/collectible_item_info.rb', line 10

def currency
  @currency
end

#purchase_dateInteger

Point in time (Unix timestamp) when the item was purchased.

Returns:

  • (Integer)

    the current value of purchase_date



10
11
12
# File 'lib/tdlib/types/collectible_item_info.rb', line 10

def purchase_date
  @purchase_date
end

#urlTD::Types::String

Individual URL for the item on fragment.com.

Returns:

  • (TD::Types::String)

    the current value of url



10
11
12
# File 'lib/tdlib/types/collectible_item_info.rb', line 10

def url
  @url
end