Class: Rippersnapper::IpParser

Inherits:
Object
  • Object
show all
Defined in:
lib/rippersnapper/ip_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host) ⇒ IpParser



6
7
8
# File 'lib/rippersnapper/ip_parser.rb', line 6

def initialize host
  @host = host
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



4
5
6
# File 'lib/rippersnapper/ip_parser.rb', line 4

def host
  @host
end

Instance Method Details

#domainObject



14
15
16
# File 'lib/rippersnapper/ip_parser.rb', line 14

def domain
  host
end

#subdomainObject



18
19
20
# File 'lib/rippersnapper/ip_parser.rb', line 18

def subdomain
  ""
end

#suffixObject



10
11
12
# File 'lib/rippersnapper/ip_parser.rb', line 10

def suffix
  ""
end