lib/ronin/url.rb in ronin-1.0.0.pre4 vs lib/ronin/url.rb in ronin-1.0.0.rc1
- old
+ new
@@ -28,10 +28,13 @@
require 'dm-tags'
require 'uri'
require 'uri/query_params'
module Ronin
+ #
+ # Represents URLs that can be stored in the {Database}.
+ #
class URL
include Model
include DataMapper::Timestamps
@@ -295,11 +298,11 @@
def self.parse(url)
from(::URI.parse(url))
end
#
- # The host name of the url.
+ # The host name of the URL.
#
# @return [String]
# The address of host name.
#
# @since 1.0.0
@@ -358,14 +361,14 @@
return query
end
#
- # Builds a URI object from the url.
+ # Builds a URI object from the URL.
#
# @return [URI::HTTP, URI::HTTPS]
- # The URI object created from the url attributes.
+ # The URI object created from the URL attributes.
#
# @since 1.0.0
#
def to_uri
# map the URL scheme to a URI class
@@ -392,13 +395,13 @@
:fragment => self.fragment
)
end
#
- # Converts the url to a String.
+ # Converts the URL to a String.
#
# @return [String]
- # The string form of the url.
+ # The string form of the URL.
#
# @since 1.0.0
#
def to_s
self.to_uri.to_s