class

TwitterAds::Response

Inherits Reference < Object

Constructors

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

Instance methods

body(*args, **options)
Source
body(*args, **options, &)
Source
body!
Source
code
code=(v : Int32) : Int32
code=(v : Nil)

nil assignments are always ignored

code?
headers(*args, **options)
Source
headers(*args, **options, &)
Source
http
http=(v : HTTP::Client::Response) : HTTP::Client::Response
http=(v : Nil)

nil assignments are always ignored

http?
rate_limit
rate_limit=(v : RateLimit) : RateLimit
rate_limit=(v : Nil)

nil assignments are always ignored

rate_limit?
req
req=(v : Request) : Request
req=(v : Nil)

nil assignments are always ignored

req?
success?(*args, **options)
Source
success?(*args, **options, &)
Source

Macros

_finish_dsl_
Source
belongs_to(name)

belongs_to account_id : String name: TypeDeclaration

Source
resource_collection(name)

resource_collection Campaign

Source
resource_error(name)

resource_errors TweetsLookupError

Source
resource_extra_mappings(v)

additional mappings for response parser

Source
resource_none

do nothing to just include Response module

Source
resource_single(name)

resource_single ReachEstimate

Source