struct

TwitterAds::Proto::MediaCreative

Inherits JSON::Serializable < Protobuf::Message < Struct < Value < Object

Constants

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: :line_item_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :account_media_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :approval_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :serving_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :landing_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :account_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Fields = {} of String => Field

Constructors

new(buf : Protobuf::Buffer)
new(id : String | Nil = nil, line_item_id : String | Nil = nil, account_media_id : String | Nil = nil, approval_status : String | Nil = nil, serving_status : String | Nil = nil, landing_url : String | Nil = nil, created_at : String | Nil = nil, updated_at : String | Nil = nil, deleted : Bool | Nil = nil, account_id : String | Nil = nil)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Class methods

from_protobuf(io)

Instance methods

[](key : String)
[]=(key : String, val)
[]?(key : String)
account_id
account_id=(account_id : String | Nil)
account_media_id
account_media_id=(account_media_id : String | Nil)
approval_status
approval_status=(approval_status : String | Nil)
created_at
created_at=(created_at : String | Nil)
deleted
deleted=(deleted : Bool | Nil)
id
id=(id : String | Nil)
landing_url
landing_url=(landing_url : String | Nil)
line_item_id
line_item_id=(line_item_id : String | Nil)
serving_status
serving_status=(serving_status : String | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf
updated_at
updated_at=(updated_at : String | Nil)