struct Facebook::Proto::InstantArticle

Included Modules

Defined in:

cli/proto/facebook/InstantArticle.pb.cr

Constant Summary

FIELDS = {1 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :canonical_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :development_mode, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :html_source, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :publish_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :published, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Fields = {} of String => Field

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(id : String | Nil = nil, canonical_url : String | Nil = nil, development_mode : Bool | Nil = nil, html_source : String | Nil = nil, publish_status : String | Nil = nil, published : Bool | Nil = nil) #

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

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def []=(key : String, val) #

def []?(key : String) #

def canonical_url : String | Nil #

def canonical_url=(canonical_url : String | Nil) #

def development_mode : Bool | Nil #

def development_mode=(development_mode : Bool | Nil) #

def html_source : String | Nil #

def html_source=(html_source : String | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def publish_status : String | Nil #

def publish_status=(publish_status : String | Nil) #

def published : Bool | Nil #

def published=(published : Bool | Nil) #

def to_hash #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #