struct CrystaLXD::BackgroundOperation
- CrystaLXD::BackgroundOperation
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
success.crConstructors
Instance Method Summary
-
#class : String
Returns the runtime
Class
of an object. - #created_at : Time
- #description : String
- #err : String
- #id : String
- #location : String
- #may_cancel : Bool
- #metadata : JSON::Any
- #resources : Resources
- #status : String
- #status_code : Success::Code
- #updated_at : Time
Constructor Detail
Instance Method Detail
def class : String
#
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