TwitterAds::Proto::AccountMedia
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: :creative_type, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :video_id, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :media_url, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :created_at, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :updated_at, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {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, creative_type : String | Nil = nil, video_id : String | Nil = nil, media_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)
created_at
created_at=(created_at : String | Nil)
creative_type
creative_type=(creative_type : String | Nil)
deleted
deleted=(deleted : Bool | Nil)
id
id=(id : String | Nil)
media_url
media_url=(media_url : String | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf
updated_at
updated_at=(updated_at : String | Nil)
video_id
video_id=(video_id : String | Nil)