Class: Rippersnapper::IpParser
- Inherits:
-
Object
- Object
- Rippersnapper::IpParser
- Defined in:
- lib/rippersnapper/ip_parser.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
- #domain ⇒ Object
-
#initialize(host) ⇒ IpParser
constructor
A new instance of IpParser.
- #subdomain ⇒ Object
- #suffix ⇒ Object
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
#host ⇒ Object (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
#domain ⇒ Object
14 15 16 |
# File 'lib/rippersnapper/ip_parser.rb', line 14 def domain host end |
#subdomain ⇒ Object
18 19 20 |
# File 'lib/rippersnapper/ip_parser.rb', line 18 def subdomain "" end |
#suffix ⇒ Object
10 11 12 |
# File 'lib/rippersnapper/ip_parser.rb', line 10 def suffix "" end |