Class: Topsy::LinkpostCount
- Inherits:
-
Object
- Object
- Topsy::LinkpostCount
- Defined in:
- lib/rtopsy/linkpost_count.rb
Instance Attribute Summary collapse
-
#all ⇒ Object
Returns the value of attribute all.
-
#contains ⇒ Object
Returns the value of attribute contains.
Instance Method Summary collapse
-
#initialize(hash) ⇒ LinkpostCount
constructor
A new instance of LinkpostCount.
- #to_s ⇒ Object
Constructor Details
#initialize(hash) ⇒ LinkpostCount
Returns a new instance of LinkpostCount.
19 20 21 22 23 |
# File 'lib/rtopsy/linkpost_count.rb', line 19 def initialize(hash) hash.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#all ⇒ Object
Returns the value of attribute all.
13 14 15 |
# File 'lib/rtopsy/linkpost_count.rb', line 13 def all @all end |
#contains ⇒ Object
Returns the value of attribute contains.
13 14 15 |
# File 'lib/rtopsy/linkpost_count.rb', line 13 def contains @contains end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/rtopsy/linkpost_count.rb', line 15 def to_s "Topsy LinkpostCount: #{all}" end |