Class: Topsy::SearchCount
- Inherits:
-
Object
- Object
- Topsy::SearchCount
- Defined in:
- lib/rtopsy/search_count.rb
Instance Attribute Summary collapse
-
#a ⇒ Object
Returns the value of attribute a.
-
#d ⇒ Object
Returns the value of attribute d.
-
#h ⇒ Object
Returns the value of attribute h.
-
#m ⇒ Object
Returns the value of attribute m.
-
#w ⇒ Object
Returns the value of attribute w.
Instance Method Summary collapse
-
#initialize(hash) ⇒ SearchCount
constructor
A new instance of SearchCount.
- #to_s ⇒ Object
Constructor Details
#initialize(hash) ⇒ SearchCount
Returns a new instance of SearchCount.
22 23 24 25 26 |
# File 'lib/rtopsy/search_count.rb', line 22 def initialize(hash) hash.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#a ⇒ Object
Returns the value of attribute a.
16 17 18 |
# File 'lib/rtopsy/search_count.rb', line 16 def a @a end |
#d ⇒ Object
Returns the value of attribute d.
16 17 18 |
# File 'lib/rtopsy/search_count.rb', line 16 def d @d end |
#h ⇒ Object
Returns the value of attribute h.
16 17 18 |
# File 'lib/rtopsy/search_count.rb', line 16 def h @h end |
#m ⇒ Object
Returns the value of attribute m.
16 17 18 |
# File 'lib/rtopsy/search_count.rb', line 16 def m @m end |
#w ⇒ Object
Returns the value of attribute w.
16 17 18 |
# File 'lib/rtopsy/search_count.rb', line 16 def w @w end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/rtopsy/search_count.rb', line 18 def to_s "Topsy SearchCount: #{all}" end |