class Hamilton::Types::SuggestedPostInfo

Overview

Contains information about a suggested post.

Included Modules

Defined in:

types/suggested_post_info.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

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

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


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


def price=(price : Hamilton::Types::SuggestedPostPrice | Nil) #

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


def send_date : Int32 | Nil #

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.


def send_date=(send_date : Int32 | Nil) #

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.


def state : String #

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


def state=(state : String) #

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