Class: Emagen::WebAddress
- Inherits:
-
Object
- Object
- Emagen::WebAddress
- Defined in:
- lib/emagen/web_address.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
Instance Method Summary collapse
-
#initialize(web_address) ⇒ WebAddress
constructor
A new instance of WebAddress.
Constructor Details
#initialize(web_address) ⇒ WebAddress
Returns a new instance of WebAddress.
5 6 7 |
# File 'lib/emagen/web_address.rb', line 5 def initialize(web_address) @domain = domain_from(web_address) end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
3 4 5 |
# File 'lib/emagen/web_address.rb', line 3 def domain @domain end |