struct Lester::Operation

Included Modules

Defined in:

lester/operation.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

Instance Method Detail

def class : Class | Nil #
Description copied from class Object

Returns the runtime Class of an object.

1.class       # => Int32
"hello".class # => String

Compare it with typeof, which returns the compile-time type of an object:

random_value = rand # => 0.627423
value = random_value < 0.5 ? 1 : "hello"
value         # => "hello"
value.class   # => String
typeof(value) # => Int32 | String

[View source]
def created_at : Time | Nil #

[View source]
def description : String | Nil #

[View source]
def err : String | Nil #

[View source]
def id : String | Nil #

[View source]
def location : String | Nil #

[View source]
def may_cancel? : Bool | Nil #

[View source]
def metadata : Metadata | Nil #

[View source]
def resources : Resources | Nil #

[View source]
def status : String | Nil #

[View source]
def status_code : Int32 | Nil #

[View source]
def success? : Bool | Nil #

[View source]
def updated_at : Time | Nil #

[View source]