struct

Lester::Operation

Inherits JSON::Serializable < Lester::Resource < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Instance methods

class

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
Source
created_at
Source
description
Source
location
Source
may_cancel?
Source
metadata
Source
resources
Source
status
Source
status_code
Source
success?
Source
updated_at
Source

Nested types