Class: Forki::User

Inherits:
Object
  • Object
show all
Defined in:
lib/forki/user.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



10
11
12
# File 'lib/forki/user.rb', line 10

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/forki/user.rb', line 10

def name
  @name
end

#number_of_followersObject (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_likesObject (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

#profileObject (readonly)

Returns the value of attribute profile.



10
11
12
# File 'lib/forki/user.rb', line 10

def profile
  @profile
end

#profile_image_fileObject (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_urlObject (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

Returns the value of attribute profile_link.



10
11
12
# File 'lib/forki/user.rb', line 10

def profile_link
  @profile_link
end

#verifiedObject (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