Class: Webpage
- Inherits:
-
MLS::Model
- Object
- ActiveRecord::Base
- MLS::Model
- Webpage
- Defined in:
- lib/mls/models/webpage.rb
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
8 9 10 |
# File 'lib/mls/models/webpage.rb', line 8 def name url.match(/^(?:https?:\/\/)?(?:www\.)?(.*)/)[1] end |