class Tourmaline::SuggestedPostInfo

Overview

Contains information about a suggested post.

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(state : String, price : Tourmaline::SuggestedPostPrice | Nil = nil, send_date : Int32 | Int64 | Nil = nil) #

[View source]

Instance Method Detail

def price : Tourmaline::SuggestedPostPrice | Nil #

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


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

Optional. Proposed price of 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 the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user or administrator who approves it.


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

Optional. Proposed send date of the post. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user or administrator who approves it.


[View source]
def state : String #

State of the suggested post. Currently, it can be one of "pending", "approved", "declined".


[View source]
def state=(state : String) #

State of the suggested post. Currently, it can be one of "pending", "approved", "declined".


[View source]