struct

RethinkDB::QueryResult

Inherits Struct / Value / Object

Constructors

new(pull : JSON::PullParser)
Source
new(raw : Type)
Source
transformed(obj : QueryResult, time_format : String, group_format : String, binary_format : String) : QueryResult

Converts following ReQL formats

  • TIME
  • GROUP
  • BINARY
Source

Instance methods

==(other : QueryResult)
Source
==(other)

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
Source
[](index : Int) : QueryResult
Source
[](key : String) : QueryResult
Source
[]?(index : Int) : QueryResult | Nil
Source
[]?(key : String) : QueryResult | Nil
Source
as_a
Source
as_a?
Source
as_bool
Source
as_bool?
Source
as_f
Source
as_f32
Source
as_f32?
Source
as_f?
Source
as_h
Source
as_h?
Source
as_i
Source
as_i64
Source
as_i64?
Source
as_i?
Source
as_nil
Source
as_s
Source
as_s?
Source
as_time
Source
as_time?
Source
clone

Returns a new QueryResult instance with the raw value cloneed.

Source
dup

Returns a new QueryResult instance with the raw value duped.

Source
hash(hasher)

See Object#hash(hasher)

Source
inspect(io)
Source
keys
Source
raw=(raw : Type)
Source
size
Source
to_reql
Source
to_s(io)
Source
transformed(time_format, group_format, binary_format)
Source

Nested types