Class: TempoIQ::Find

Inherits:
Object
  • Object
show all
Defined in:
lib/tempoiq/models/find.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(limit = nil) ⇒ Find

Returns a new instance of Find.



5
6
7
8
# File 'lib/tempoiq/models/find.rb', line 5

def initialize(limit = nil)
  @name = "find"
  @limit = limit
end

Instance Attribute Details

#limitObject (readonly)

Returns the value of attribute limit.



3
4
5
# File 'lib/tempoiq/models/find.rb', line 3

def limit
  @limit
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/tempoiq/models/find.rb', line 3

def name
  @name
end

Instance Method Details

#to_hashObject



10
11
12
13
14
15
16
# File 'lib/tempoiq/models/find.rb', line 10

def to_hash
  hash = {
    "quantifier" => "all"
  }
  hash["limit"] = limit if limit
  hash
end