struct TwitterAds::Proto::Cards

Included Modules

Defined in:

twitter-ads/proto/cards.pb.cr

Constant Summary

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

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.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) #

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 account_id : String | Nil #

def account_id=(account_id : String | Nil) #

def button_app_country : String | Nil #

def button_app_country=(button_app_country : String | Nil) #

def button_app_google_id : String | Nil #

def button_app_google_id=(button_app_google_id : String | Nil) #

def button_app_google_link : String | Nil #

def button_app_google_link=(button_app_google_link : String | Nil) #

def button_app_ios_id : String | Nil #

def button_app_ios_id=(button_app_ios_id : String | Nil) #

def button_app_ios_link : String | Nil #

def button_app_ios_link=(button_app_ios_link : String | Nil) #

def button_label : String | Nil #

def button_label=(button_label : String | Nil) #

def card_type : String | Nil #

def card_type=(card_type : String | Nil) #

def card_uri : String | Nil #

def card_uri=(card_uri : String | Nil) #

def created_at : String | Nil #

def created_at=(created_at : String | Nil) #

def deleted : Bool | Nil #

def deleted=(deleted : Bool | Nil) #

def dest_urls : Array(String) | Nil #

def dest_urls=(dest_urls : Array(String) | Nil) #

def dest_urls=(dest_urls : Array(String) | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def media_keys : Array(String) | Nil #

def media_keys=(media_keys : Array(String) | Nil) #

def media_keys=(media_keys : Array(String) | Nil) #

def media_urls : Array(String) | Nil #

def media_urls=(media_urls : Array(String) | Nil) #

def media_urls=(media_urls : Array(String) | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def titles : Array(String) | Nil #

def titles=(titles : Array(String) | Nil) #

def titles=(titles : Array(String) | Nil) #

def to_hash #

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

def to_protobuf #

def updated_at : String | Nil #

def updated_at=(updated_at : String | Nil) #