Class: Link

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/link.rb

Instance Method Summary collapse

Instance Method Details

#schemeObject



16
17
18
# File 'app/models/link.rb', line 16

def scheme
  url.present? ? URI.parse(url).scheme : ''
end