Class: Topsy::LinkpostCount

Inherits:
Object
  • Object
show all
Defined in:
lib/rtopsy/linkpost_count.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#allObject

Returns the value of attribute all.



13
14
15
# File 'lib/rtopsy/linkpost_count.rb', line 13

def all
  @all
end

#containsObject

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_sObject



15
16
17
# File 'lib/rtopsy/linkpost_count.rb', line 15

def to_s
  "Topsy LinkpostCount: #{all}"
end