class
Tourmaline::SuggestedPostInfo
- Tourmaline::SuggestedPostInfo
- Reference
- Object
Overview
Contains information about a suggested post.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(state : String, price : Tourmaline::SuggestedPostPrice | Nil = nil, send_date : Int32 | Int64 | Nil = nil)
Instance Method Summary
-
#price : Tourmaline::SuggestedPostPrice | Nil
Optional.
-
#price=(price : Tourmaline::SuggestedPostPrice | Nil)
Optional.
-
#send_date : Time | Nil
Optional.
-
#send_date=(send_date : Time | Nil)
Optional.
-
#state : String
State of the suggested post.
-
#state=(state : String)
State of the suggested post.
Constructor Detail
Instance Method Detail
Optional. Proposed price of the post. If the field is omitted, then the post is unpaid.
Optional. Proposed price of the post. If the field is omitted, then the post is unpaid.
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.
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.
State of the suggested post. Currently, it can be one of "pending", "approved", "declined".
State of the suggested post. Currently, it can be one of "pending", "approved", "declined".