Class: Nestling::Collection
- Inherits:
-
Array
- Object
- Array
- Nestling::Collection
- Defined in:
- lib/nestling/collection.rb
Instance Attribute Summary collapse
-
#results ⇒ Object
(also: #total)
readonly
Returns the value of attribute results.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(options = {}, *args) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(options = {}, *args) ⇒ Collection
Returns a new instance of Collection.
7 8 9 10 11 12 13 14 |
# File 'lib/nestling/collection.rb', line 7 def initialize( = {}, *args) = Nestling::Hash.new().symbolize_keys! @results = [:results] || [:total] @start = [:start] @session_id = [:session_id] @type = [:type] super *args end |
Instance Attribute Details
#results ⇒ Object (readonly) Also known as: total
Returns the value of attribute results.
3 4 5 |
# File 'lib/nestling/collection.rb', line 3 def results @results end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
3 4 5 |
# File 'lib/nestling/collection.rb', line 3 def session_id @session_id end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
3 4 5 |
# File 'lib/nestling/collection.rb', line 3 def start @start end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/nestling/collection.rb', line 3 def type @type end |