struct RethinkDB::QueryResult

Defined in:

rethinkdb/serialization.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(raw : Type) #

[View source]
def self.transformed(obj : QueryResult, time_format : String, group_format : String, binary_format : String) : QueryResult #

Converts following ReQL formats

  • TIME
  • GROUP
  • BINARY

[View source]

Instance Method Detail

def ==(other : QueryResult) #

[View source]
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

[View source]
def [](index : Int) : QueryResult #

[View source]
def [](key : String) : QueryResult #

[View source]
def []?(index : Int) : QueryResult | Nil #

[View source]
def []?(key : String) : QueryResult | Nil #

[View source]
def as_a : Array(QueryResult) #

[View source]
def as_a? : Array(QueryResult) | Nil #

[View source]
def as_bool : Bool #

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

[View source]
def as_f : Float64 #

[View source]
def as_f32 : Float32 #

[View source]
def as_f32? : Float32 | Nil #

[View source]
def as_f? : Float64 | Nil #

[View source]
def as_h : Hash(String, QueryResult) #

[View source]
def as_h? : Hash(String, QueryResult) | Nil #

[View source]
def as_i : Int32 #

[View source]
def as_i64 : Int64 #

[View source]
def as_i64? : Int64 | Nil #

[View source]
def as_i? : Int32 | Nil #

[View source]
def as_nil : Nil #

[View source]
def as_s : String #

[View source]
def as_s? : String | Nil #

[View source]
def as_time : Time #

[View source]
def as_time? : Time | Nil #

[View source]
def clone #

Returns a new QueryResult instance with the #raw value #cloneed.


[View source]
def dup #

Returns a new QueryResult instance with the #raw value #duped.


[View source]
def hash(hasher) #
Description copied from struct Struct

See Object#hash(hasher)


[View source]
def inspect(io) #

[View source]
def keys #

[View source]
def raw : Type #

[View source]
def raw=(raw : Type) #

[View source]
def size : Int #

[View source]
def to_reql #

[View source]
def to_s(io) #

[View source]
def transformed(time_format, group_format, binary_format) #

[View source]