class
TwitterAds::Api::CardsImageConversation
- TwitterAds::Api::CardsImageConversation
- TwitterAds::Response
- Reference
- Object
Included Modules
- Indexable(TwitterAds::CardsImageConversation)
Defined in:
twitter-ads/api/cards_image_conversation.crConstant Summary
-
BELONGS_TO =
[account_id : String] of ASTNode -
RESOURCE =
{:type => :collection, :name => CardsImageConversation, :error => nil, :extra_mappings => nil}
Constructors
Instance Method Summary
- #account_id : String
- #account_id=(v : String) : String
-
#account_id=(v : Nil)
nilassignments are always ignored - #account_id? : String | Nil
- #bound_data : Array(TwitterAds::CardsImageConversation)
- #bound_data=(v : Array(TwitterAds::CardsImageConversation)) : Array(TwitterAds::CardsImageConversation)
-
#bound_data=(v : Nil)
nilassignments are always ignored - #bound_data? : Array(TwitterAds::CardsImageConversation) | Nil
-
#each(&)
Calls the given block once for each element in
self, passing that element as a parameter. - #next_cursor? : String | Nil
- #parser : Parser
- #parser=(v : Parser) : Parser
-
#parser=(v : Nil)
nilassignments are always ignored - #parser? : Parser | Nil
-
#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.
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
Instance Method Detail
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 --
Returns the number of elements in this container.
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.