Class: ReservedSubdomain
- Inherits:
-
Object
- Object
- ReservedSubdomain
- Defined in:
- lib/reserved_subdomain.rb,
lib/reserved_subdomain/prefix.rb,
lib/reserved_subdomain/literal.rb,
lib/reserved_subdomain/pattern.rb,
lib/reserved_subdomain/version.rb
Defined Under Namespace
Classes: Literal, Pattern, Prefix
Constant Summary collapse
- VERSION =
'0.0.1'.freeze
Instance Attribute Summary collapse
-
#subdomain ⇒ Object
readonly
Returns the value of attribute subdomain.
Instance Method Summary collapse
-
#initialize(subdomain) ⇒ ReservedSubdomain
constructor
A new instance of ReservedSubdomain.
- #reserved? ⇒ Boolean
Constructor Details
#initialize(subdomain) ⇒ ReservedSubdomain
Returns a new instance of ReservedSubdomain.
8 9 10 |
# File 'lib/reserved_subdomain.rb', line 8 def initialize(subdomain) @subdomain = subdomain end |
Instance Attribute Details
#subdomain ⇒ Object (readonly)
Returns the value of attribute subdomain.
6 7 8 |
# File 'lib/reserved_subdomain.rb', line 6 def subdomain @subdomain end |