Class: Skyline::ReferableUri
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Skyline::ReferableUri
- Defined in:
- app/models/skyline/referable_uri.rb
Instance Method Summary collapse
- #external? ⇒ Boolean
-
#title ⇒ Object
used in ref_object_helper.
- #url ⇒ Object
Instance Method Details
#external? ⇒ Boolean
13 14 15 16 |
# File 'app/models/skyline/referable_uri.rb', line 13 def external? # definition of the URL scheme: http://labs.apache.org/webarch/uri/rfc/rfc3986.html#scheme self.uri.present? && self.uri =~ /^[a-z][a-z0-9\+\-\.]*:/i end |
#title ⇒ Object
used in ref_object_helper
9 10 11 |
# File 'app/models/skyline/referable_uri.rb', line 9 def title self.uri end |
#url ⇒ Object
4 5 6 |
# File 'app/models/skyline/referable_uri.rb', line 4 def url self.uri end |