Class: ReservedSubdomain
- Inherits:
-
Object
- Object
- ReservedSubdomain
- Defined in:
- lib/reserved_subdomain.rb,
lib/reserved_subdomain/file.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: File, Literal, Pattern, Prefix
Constant Summary collapse
- VERSION =
'0.0.3'.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.
9 10 11 |
# File 'lib/reserved_subdomain.rb', line 9 def initialize(subdomain) @subdomain = subdomain end |
Instance Attribute Details
#subdomain ⇒ Object (readonly)
Returns the value of attribute subdomain.
7 8 9 |
# File 'lib/reserved_subdomain.rb', line 7 def subdomain @subdomain end |