class

TwitterAds::Api::CardsVideoDirectMessage

Inherits Indexable < Enumerable < Iterable < TwitterAds::Response < Reference < Object

Constants

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

Constructors

new(res : Response, account_id : String)

Instance methods

account_id
account_id=(v : String) : String
account_id=(v : Nil)

nil assignments are always ignored

account_id?
bound_data
bound_data=(v : Nil)

nil assignments are always ignored

bound_data?
each

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 --
next_cursor?
parser
parser=(v : Parser) : Parser
parser=(v : Nil)

nil assignments are always ignored

parser?
size

Returns the number of elements in this container.

unsafe_fetch(index : Int)

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.

Nested types