class TwitterAds::Response

Direct Known Subclasses

Defined in:

twitter-ads/response.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

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

[View source]

Macro Detail

macro _finish_dsl_ #

[View source]
macro belongs_to(name) #

belongs_to account_id : String name: TypeDeclaration


[View source]
macro resource_collection(name) #

resource_collection Campaign


[View source]
macro resource_error(name) #

resource_errors TweetsLookupError


[View source]
macro resource_extra_mappings(v) #

additional mappings for response parser


[View source]
macro resource_none #

do nothing to just include Response module


[View source]
macro resource_single(name) #

resource_single ReachEstimate


[View source]

Instance Method Detail

def body(*args, **options) #

[View source]
def body(*args, **options, &) #

[View source]
def body! : String #

[View source]
def code : Int32 #

def code=(v : Int32) : Int32 #

def code=(v : Nil) #

nil assignments are always ignored


def code? : Int32 | Nil #

def headers(*args, **options) #

[View source]
def headers(*args, **options, &) #

[View source]
def http : HTTP::Client::Response #

def http=(v : HTTP::Client::Response) : HTTP::Client::Response #

def http=(v : Nil) #

nil assignments are always ignored


def http? : HTTP::Client::Response | Nil #

def rate_limit : RateLimit #

def rate_limit=(v : RateLimit) : RateLimit #

def rate_limit=(v : Nil) #

nil assignments are always ignored


def rate_limit? : RateLimit | Nil #

def req : Request #

def req=(v : Request) : Request #

def req=(v : Nil) #

nil assignments are always ignored


def req? : Request | Nil #

def success?(*args, **options) #

[View source]
def success?(*args, **options, &) #

[View source]