class Tourmaline::ChatBoost
- Tourmaline::ChatBoost
- Reference
- Object
Overview
This object contains information about a chat boost.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(boost_id : String, add_date : Time, expiration_date : Time, source : Tourmaline::ChatBoostSourceGiftCode | Tourmaline::ChatBoostSourceGiveaway | Tourmaline::ChatBoostSourcePremium)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #add_date : Time
- #add_date=(add_date : Time)
-
#boost_id : String
Unique identifier of the boost
-
#boost_id=(boost_id : String)
Unique identifier of the boost
- #expiration_date : Time
- #expiration_date=(expiration_date : Time)
-
#source : Tourmaline::ChatBoostSource
Source of the added boost
-
#source=(source : Tourmaline::ChatBoostSource)
Source of the added boost
Constructor Detail
def self.new(boost_id : String, add_date : Time, expiration_date : Time, source : Tourmaline::ChatBoostSourceGiftCode | Tourmaline::ChatBoostSourceGiveaway | Tourmaline::ChatBoostSourcePremium)
#