Class: Twingly::Analytics::Result
- Inherits:
-
Object
- Object
- Twingly::Analytics::Result
- Defined in:
- lib/twingly-analytics/result.rb
Instance Attribute Summary collapse
-
#number_of_matches_returned ⇒ Object
Returns the value of attribute number_of_matches_returned.
-
#number_of_matches_total ⇒ Object
Returns the value of attribute number_of_matches_total.
-
#seconds_elapsed ⇒ Object
Returns the value of attribute seconds_elapsed.
Instance Method Summary collapse
Instance Attribute Details
#number_of_matches_returned ⇒ Object
Returns the value of attribute number_of_matches_returned.
4 5 6 |
# File 'lib/twingly-analytics/result.rb', line 4 def number_of_matches_returned @number_of_matches_returned end |
#number_of_matches_total ⇒ Object
Returns the value of attribute number_of_matches_total.
4 5 6 |
# File 'lib/twingly-analytics/result.rb', line 4 def number_of_matches_total @number_of_matches_total end |
#seconds_elapsed ⇒ Object
Returns the value of attribute seconds_elapsed.
4 5 6 |
# File 'lib/twingly-analytics/result.rb', line 4 def seconds_elapsed @seconds_elapsed end |
Instance Method Details
#inspect ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/twingly-analytics/result.rb', line 11 def inspect matches = "@posts, " matches << "@number_of_matches_returned=#{self.number_of_matches_returned}, " matches << "@number_of_matches_total=#{self.number_of_matches_total}" sprintf("#<%s:0x%x %s>", self.class.name, __id__, matches) end |
#posts ⇒ Object
7 8 9 |
# File 'lib/twingly-analytics/result.rb', line 7 def posts @posts ||= [] end |