Class: Forki::User
- Inherits:
-
Object
- Object
- Forki::User
- Defined in:
- lib/forki/user.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#number_of_followers ⇒ Object
readonly
Returns the value of attribute number_of_followers.
-
#number_of_likes ⇒ Object
readonly
Returns the value of attribute number_of_likes.
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
-
#profile_image_file ⇒ Object
readonly
Returns the value of attribute profile_image_file.
-
#profile_image_url ⇒ Object
readonly
Returns the value of attribute profile_image_url.
-
#profile_link ⇒ Object
readonly
Returns the value of attribute profile_link.
-
#verified ⇒ Object
readonly
Returns the value of attribute verified.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
10 11 12 |
# File 'lib/forki/user.rb', line 10 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/forki/user.rb', line 10 def name @name end |
#number_of_followers ⇒ Object (readonly)
Returns the value of attribute number_of_followers.
10 11 12 |
# File 'lib/forki/user.rb', line 10 def number_of_followers @number_of_followers end |
#number_of_likes ⇒ Object (readonly)
Returns the value of attribute number_of_likes.
10 11 12 |
# File 'lib/forki/user.rb', line 10 def number_of_likes @number_of_likes end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
10 11 12 |
# File 'lib/forki/user.rb', line 10 def profile @profile end |
#profile_image_file ⇒ Object (readonly)
Returns the value of attribute profile_image_file.
10 11 12 |
# File 'lib/forki/user.rb', line 10 def profile_image_file @profile_image_file end |
#profile_image_url ⇒ Object (readonly)
Returns the value of attribute profile_image_url.
10 11 12 |
# File 'lib/forki/user.rb', line 10 def profile_image_url @profile_image_url end |
#profile_link ⇒ Object (readonly)
Returns the value of attribute profile_link.
10 11 12 |
# File 'lib/forki/user.rb', line 10 def profile_link @profile_link end |
#verified ⇒ Object (readonly)
Returns the value of attribute verified.
10 11 12 |
# File 'lib/forki/user.rb', line 10 def verified @verified end |
Class Method Details
.lookup(urls = []) ⇒ Object
5 6 7 8 |
# File 'lib/forki/user.rb', line 5 def self.lookup(urls = []) urls = [urls] unless urls.kind_of?(Array) self.scrape(urls) end |