TwitterAds::Proto::Account
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: :name, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :business_id, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :business_name, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :industry_type, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :timezone, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :timezone_switch_at, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :salt, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :created_at, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :updated_at, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :approval_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :deleted, 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
new(buf : Protobuf::Buffer)
new(id : String | Nil = nil, name : String | Nil = nil, business_id : String | Nil = nil, business_name : String | Nil = nil, industry_type : String | Nil = nil, timezone : String | Nil = nil, timezone_switch_at : String | Nil = nil, salt : String | Nil = nil, created_at : String | Nil = nil, updated_at : String | Nil = nil, approval_status : String | Nil = nil, deleted : Bool | 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)
approval_status
approval_status=(approval_status : String | Nil)
business_id
business_id=(business_id : String | Nil)
business_name
business_name=(business_name : String | Nil)
created_at
created_at=(created_at : String | Nil)
deleted
deleted=(deleted : Bool | Nil)
id
id=(id : String | Nil)
industry_type
industry_type=(industry_type : String | Nil)
name
name=(name : String | Nil)
salt
salt=(salt : String | Nil)
timezone
timezone=(timezone : String | Nil)
timezone_switch_at
timezone_switch_at=(timezone_switch_at : String | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf
updated_at
updated_at=(updated_at : String | Nil)