Class: Twingly::URL::UrlObject
- Inherits:
-
Struct
- Object
- Struct
- Twingly::URL::UrlObject
- Defined in:
- lib/twingly/url.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain
12 13 14 |
# File 'lib/twingly/url.rb', line 12 def domain @domain end |
#url ⇒ Object
Returns the value of attribute url
12 13 14 |
# File 'lib/twingly/url.rb', line 12 def url @url end |
Instance Method Details
#valid? ⇒ Boolean
13 14 15 |
# File 'lib/twingly/url.rb', line 13 def valid? url && domain && SCHEMES.include?(url.normalized_scheme) end |