Class: MediumScrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/medium-scrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#userObject (readonly)

Returns the value of attribute user.



6
7
8
# File 'lib/medium-scrapper.rb', line 6

def user
  @user
end

Instance Method Details

#load_user(username) ⇒ Object



8
9
10
# File 'lib/medium-scrapper.rb', line 8

def load_user(username)
  UserRetriever.new(UrlParser).load(username)
end