class TwitterAds::Api::CardsAll

Included Modules

Defined in:

twitter-ads/api/cards_all.cr

Constant Summary

BELONGS_TO = [account_id : String] of ASTNode
RESOURCE = {:type => :collection, :name => CardsAll, :error => nil, :extra_mappings => nil}

Constructors

Instance Method Summary

Instance methods inherited from class TwitterAds::Response

body(*args, **options)
body(*args, **options, &)
body
, body! : String body!, code : Int32 code, code=(v : Int32) : Int32
code=(v : Nil)
code=
, code? : Int32 | Nil code?, headers(*args, **options)
headers(*args, **options, &)
headers
, http : HTTP::Client::Response http, http=(v : HTTP::Client::Response) : HTTP::Client::Response
http=(v : Nil)
http=
, http? : HTTP::Client::Response | Nil http?, rate_limit : RateLimit rate_limit, rate_limit=(v : RateLimit) : RateLimit
rate_limit=(v : Nil)
rate_limit=
, rate_limit? : RateLimit | Nil rate_limit?, req : Request req, req=(v : Request) : Request
req=(v : Nil)
req=
, req? : Request | Nil req?, success?(*args, **options)
success?(*args, **options, &)
success?

Constructor methods inherited from class TwitterAds::Response

new(http : Nil | HTTP::Client::Response, req : Nil | TwitterAds::Request = nil) new

Macros inherited from class TwitterAds::Response

_finish_dsl_ _finish_dsl_, belongs_to(name) belongs_to, resource_collection(name) resource_collection, resource_error(name) resource_error, resource_extra_mappings(v) resource_extra_mappings, resource_none resource_none, resource_single(name) resource_single

Constructor Detail

def self.new(res : Response, account_id : String) #

Instance Method Detail

def account_id : String #

def account_id=(v : String) : String #

def account_id=(v : Nil) #

nil assignments are always ignored


def account_id? : String | Nil #

def bound_data : Array(TwitterAds::CardsAll) #

def bound_data=(v : Array(TwitterAds::CardsAll)) : Array(TwitterAds::CardsAll) #

def bound_data=(v : Nil) #

nil assignments are always ignored


def bound_data? : Array(TwitterAds::CardsAll) | Nil #

def each(&) #
Description copied from module Indexable(TwitterAds::CardsAll)

Calls the given block once for each element in self, passing that element as a parameter.

a = ["a", "b", "c"]
a.each { |x| print x, " -- " }

produces:

a -- b -- c --

def next_cursor? : String | Nil #

def parser : Parser #

def parser=(v : Parser) : Parser #

def parser=(v : Nil) #

nil assignments are always ignored


def parser? : Parser | Nil #

def size #
Description copied from module Indexable(TwitterAds::CardsAll)

Returns the number of elements in this container.


def unsafe_fetch(index : Int) #
Description copied from module Indexable(TwitterAds::CardsAll)

Returns the element at the given index, without doing any bounds check.

Indexable makes sure to invoke this method with index in 0...size, so converting negative indices to positive ones is not needed here.

Clients never invoke this method directly. Instead, they access elements with #[](index) and #[]?(index).

This method should only be directly invoked if you are absolutely sure the index is in bounds, to avoid a bounds check for a small boost of performance.