class TwitterAds::Request

Defined in:

twitter-ads/request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(method : Method, resource : Nil | String, params : Nil | Hash(String, String)) #

[View source]

Instance Method Detail

def full_url : String #

[View source]
def http : HTTP::Request #

def http=(v : HTTP::Request) : HTTP::Request #

def http=(v : Nil) #

nil assignments are always ignored


def http? : HTTP::Request | Nil #

def method : Method #

def method=(v : Method) : Method #

def method=(v : Nil) #

nil assignments are always ignored


def method? : Method | Nil #

def params : Hash(String, String) #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def params=(v : Hash(String, String)) : Hash(String, String) #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def params=(v : Nil) #

nil assignments are always ignored


def params? : Hash(String, String) | Nil #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def requested_at : Time #

def requested_at=(v : Time) : Time #

def requested_at=(v : Nil) #

nil assignments are always ignored


def requested_at? : Time | Nil #

def resource : String #

def resource=(v : String) : String #

def resource=(v : Nil) #

nil assignments are always ignored


def resource? : String | Nil #

def runtime_uri : URI #

def runtime_uri=(v : URI) : URI #

def runtime_uri=(v : Nil) #

nil assignments are always ignored


def runtime_uri? : URI | Nil #

def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]