Class: ACTV::OrganizerResults

Inherits:
Base
  • Object
show all
Defined in:
lib/actv/organizer_results.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, #delete, from_response, #initialize, #memoize, #method_missing, object_attr_reader, #respond_to?, #to_hash, #update, uri_attr_reader

Constructor Details

This class inherits a constructor from ACTV::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ACTV::Base

Instance Attribute Details

#items_per_pageObject (readonly)

Returns the value of attribute items_per_page.



3
4
5
# File 'lib/actv/organizer_results.rb', line 3

def items_per_page
  @items_per_page
end

#start_indexObject (readonly)

Returns the value of attribute start_index.



3
4
5
# File 'lib/actv/organizer_results.rb', line 3

def start_index
  @start_index
end

#total_resultsObject (readonly)

Returns the value of attribute total_results.



3
4
5
# File 'lib/actv/organizer_results.rb', line 3

def total_results
  @total_results
end

Instance Method Details

#resultsObject



5
6
7
8
9
# File 'lib/actv/organizer_results.rb', line 5

def results
  @results ||= Array(@attrs[:results]).map do |organizer|
    ACTV::Organizer.new(organizer)
  end
end