TwitterAds::Proto::Cards
Inherits JSON::Serializable < Protobuf::Message < Struct < Value < Object
Constants
FIELDS = {1 => {name: :name, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :card_type, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :created_at, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :card_uri, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :id, 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}, 9 => {name: :titles, pb_type: :string,
crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 10 => {name: :media_keys, pb_type: :string,
crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 11 => {name: :media_urls, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 12 => {name: :dest_urls, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 13 => {name: :button_label, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :button_app_country, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :button_app_ios_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :button_app_ios_link, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :button_app_google_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :button_app_google_link, 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(name : String | Nil = nil, card_type : String | Nil = nil, created_at : String | Nil = nil, card_uri : String | Nil = nil, id : String | Nil = nil, updated_at : String | Nil = nil, deleted : Bool | Nil = nil, account_id : String | Nil = nil, titles : Array(String) | Nil = nil, media_keys : Array(String) | Nil = nil, media_urls : Array(String) | Nil = nil, dest_urls : Array(String) | Nil = nil, button_label : String | Nil = nil, button_app_country : String | Nil = nil, button_app_ios_id : String | Nil = nil, button_app_ios_link : String | Nil = nil, button_app_google_id : String | Nil = nil, button_app_google_link : 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)
button_app_country
button_app_country=(button_app_country : String | Nil)
button_app_google_id
button_app_google_id=(button_app_google_id : String | Nil)
button_app_google_link
button_app_google_link=(button_app_google_link : String | Nil)
button_app_ios_id
button_app_ios_id=(button_app_ios_id : String | Nil)
button_app_ios_link
button_app_ios_link=(button_app_ios_link : String | Nil)
button_label
button_label=(button_label : String | Nil)
card_type
card_type=(card_type : String | Nil)
card_uri
card_uri=(card_uri : String | Nil)
created_at
created_at=(created_at : String | Nil)
deleted
deleted=(deleted : Bool | Nil)
dest_urls
dest_urls=(dest_urls : Array(String) | Nil)
dest_urls=(dest_urls : Array(String) | Nil)
id
id=(id : String | Nil)
media_keys
media_keys=(media_keys : Array(String) | Nil)
media_keys=(media_keys : Array(String) | Nil)
media_urls
media_urls=(media_urls : Array(String) | Nil)
media_urls=(media_urls : Array(String) | Nil)
name
name=(name : String | Nil)
titles
titles=(titles : Array(String) | Nil)
titles=(titles : Array(String) | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf
updated_at
updated_at=(updated_at : String | Nil)