struct RethinkDB::QueryResult
- RethinkDB::QueryResult
- Struct
- Value
- Object
Defined in:
rethinkdb/serialization.crConstructors
- .new(pull : JSON::PullParser)
- .new(raw : Type)
-
.transformed(obj : QueryResult, time_format : String, group_format : String, binary_format : String) : QueryResult
Converts following ReQL formats - TIME - GROUP - BINARY
Instance Method Summary
- #==(other : QueryResult)
-
#==(other)
Returns
true
if this struct is equal to other. - #[](index : Int) : QueryResult
- #[](key : String) : QueryResult
- #[]?(index : Int) : QueryResult | Nil
- #[]?(key : String) : QueryResult | Nil
- #as_a : Array(QueryResult)
- #as_a? : Array(QueryResult) | Nil
- #as_bool : Bool
- #as_bool? : Bool | Nil
- #as_f : Float64
- #as_f32 : Float32
- #as_f32? : Float32 | Nil
- #as_f? : Float64 | Nil
- #as_h : Hash(String, QueryResult)
- #as_h? : Hash(String, QueryResult) | Nil
- #as_i : Int32
- #as_i64 : Int64
- #as_i64? : Int64 | Nil
- #as_i? : Int32 | Nil
- #as_nil : Nil
- #as_s : String
- #as_s? : String | Nil
- #as_time : Time
- #as_time? : Time | Nil
- #clone
- #dup
-
#hash(hasher)
See
Object#hash(hasher)
- #inspect(io)
- #keys
- #raw : Type
- #raw=(raw : Type)
- #size : Int
- #to_reql
- #to_s(io)
- #transformed(time_format, group_format, binary_format)
Constructor Detail
def self.transformed(obj : QueryResult, time_format : String, group_format : String, binary_format : String) : QueryResult
#
Converts following ReQL formats
- TIME
- GROUP
- BINARY
Instance Method Detail
def ==(other)
#
Description copied from struct Struct
Returns true
if this struct is equal to other.
Both structs' instance vars are compared to each other. Thus, two structs are considered equal if each of their instance variables are equal. Subclasses should override this method to provide specific equality semantics.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p2 = Point.new 1, 2
p3 = Point.new 3, 4
p1 == p2 # => true
p1 == p3 # => false