class Tourmaline::SuggestedPostParameters

Overview

Contains parameters of a post that is being suggested by the bot.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(price : Tourmaline::SuggestedPostPrice | Nil = nil, send_date : Int32 | Int64 | Nil = nil) #

[View source]

Instance Method Detail

def price : Tourmaline::SuggestedPostPrice | Nil #

Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.


[View source]
def price=(price : Tourmaline::SuggestedPostPrice | Nil) #

Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.


[View source]
def send_date : Time | Nil #

Optional. Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.


[View source]
def send_date=(send_date : Time | Nil) #

Optional. Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.


[View source]