Class: Emagen::WebAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/emagen/web_address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#domainObject (readonly)

Returns the value of attribute domain.



3
4
5
# File 'lib/emagen/web_address.rb', line 3

def domain
  @domain
end