Class: FacebookScrapper::Person
- Inherits:
-
Object
- Object
- FacebookScrapper::Person
- Defined in:
- lib/facebook_scrapper/person.rb
Instance Attribute Summary collapse
-
#add_as_friend_link ⇒ Object
Returns the value of attribute add_as_friend_link.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pofile_link ⇒ Object
Returns the value of attribute pofile_link.
Instance Method Summary collapse
-
#initialize ⇒ Person
constructor
A new instance of Person.
- #to_str ⇒ Object
Constructor Details
#initialize ⇒ Person
Returns a new instance of Person.
5 6 7 8 9 |
# File 'lib/facebook_scrapper/person.rb', line 5 def initialize self.name = "" self.pofile_link = "" self.add_as_friend_link = "" end |
Instance Attribute Details
#add_as_friend_link ⇒ Object
Returns the value of attribute add_as_friend_link.
3 4 5 |
# File 'lib/facebook_scrapper/person.rb', line 3 def add_as_friend_link @add_as_friend_link end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/facebook_scrapper/person.rb', line 3 def name @name end |
#pofile_link ⇒ Object
Returns the value of attribute pofile_link.
3 4 5 |
# File 'lib/facebook_scrapper/person.rb', line 3 def pofile_link @pofile_link end |
Instance Method Details
#to_str ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/facebook_scrapper/person.rb', line 11 def to_str s = "" s += "#{self.name}:\n" s += "Profile Link: #{self.pofile_link}" if self.add_as_friend_link != "" s += "Addlink ->: #{self.add_as_friend_link}" end return s end |