Class: FacebookDumper::Person
- Inherits:
-
Object
- Object
- FacebookDumper::Person
- Defined in:
- lib/facebook_dumper.rb
Instance Attribute Summary collapse
-
#friends_mutual ⇒ Object
Returns the value of attribute friends_mutual.
-
#imgsrc ⇒ Object
Returns the value of attribute imgsrc.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize ⇒ Person
constructor
A new instance of Person.
-
#inspect ⇒ Object
attr_accessor :uid, :url, :name, :friends_num, :mutual_friends_num.
Constructor Details
#initialize ⇒ Person
16 17 18 19 20 21 22 23 |
# File 'lib/facebook_dumper.rb', line 16 def initialize #@uid = 0 @url = "" @name = "" @imgsrc = "" @friends_mutual = 0 #@friends_num = 0 end |
Instance Attribute Details
#friends_mutual ⇒ Object
Returns the value of attribute friends_mutual.
27 28 29 |
# File 'lib/facebook_dumper.rb', line 27 def friends_mutual @friends_mutual end |
#imgsrc ⇒ Object
Returns the value of attribute imgsrc.
26 27 28 |
# File 'lib/facebook_dumper.rb', line 26 def imgsrc @imgsrc end |
#name ⇒ Object
Returns the value of attribute name.
25 26 27 |
# File 'lib/facebook_dumper.rb', line 25 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
24 25 26 |
# File 'lib/facebook_dumper.rb', line 24 def url @url end |
Instance Method Details
#<=>(other) ⇒ Object
34 35 36 37 |
# File 'lib/facebook_dumper.rb', line 34 def <=> other #return @uid <=> other.uid return @url <=> other.url end |
#inspect ⇒ Object
attr_accessor :uid, :url, :name, :friends_num, :mutual_friends_num
30 31 32 33 |
# File 'lib/facebook_dumper.rb', line 30 def inspect #"#{@url} #{@name} #{@friends_mutual} #{@imgsrc}" "#{@url} #{@name} #{@friends_mutual}" end |