class
GRPC::Status
- GRPC::Status
- Reference
- Object
Defined in:
grpc/status.crConstructors
- .cancelled(message = "") : Status
- .internal(message = "") : Status
- .invalid_argument(message = "") : Status
- .new(code : StatusCode, message : String = "", details : Bytes | Nil = nil)
- .not_found(message = "") : Status
- .ok : Status
- .unavailable(message = "") : Status
- .unimplemented(message = "") : Status
- .unknown(message = "") : Status
Instance Method Summary
-
#==(other : self) : Bool
Returns
trueif this reference is the same as other. - #code : StatusCode
- #details : Bytes | Nil
-
#hash(hasher)
See
Object#hash(hasher) - #message : String
- #ok? : Bool
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
Constructor Detail
Instance Method Detail
def ==(other : self) : Bool
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.
def to_s(io : IO) : Nil
#
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>