Class: TempoIQ::Find
- Inherits:
-
Object
- Object
- TempoIQ::Find
- Defined in:
- lib/tempoiq/models/find.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(limit = nil) ⇒ Find
constructor
A new instance of Find.
- #to_hash ⇒ Object
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
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
3 4 5 |
# File 'lib/tempoiq/models/find.rb', line 3 def limit @limit end |
#name ⇒ Object (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_hash ⇒ Object
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 |