Skip to content

Commit

Permalink
Coding conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed May 25, 2012
1 parent 4068557 commit 7621ca8
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions lib/whois/record/parser/whois.co.ug.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ module Whois
class Record
class Parser

#
# = whois.co.ug parser
#
# Parser for the whois.co.ug server.
#
# NOTE: This parser is just a stub and provides only a few basic methods
# to check for domain availability and get domain status.
# Please consider to contribute implementing missing methods.
# See WhoisNicIt parser for an explanation of all available methods
# and examples.
# @note This parser is just a stub and provides only a few basic methods
# to check for domain availability and get domain status.
# Please consider to contribute implementing missing methods.
#
# @see Whois::Record::Parser::Example
# The Example parser for the list of all available methods.
#
# @author Simone Carletti <weppos@weppos.net>
# @author Moritz Heidkamp <moritz.heidkamp@bevuta.com>
Expand All @@ -33,9 +31,10 @@ class WhoisCoUg < Base
property_supported :status do
if content_for_scanner =~ /^Status:\s+(.+?)\n/
case $1.downcase
when "active" then :registered
else
Whois.bug!(ParserError, "Unknown status `#{$1}'.")
when 'active'
:registered
else
Whois.bug!(ParserError, "Unknown status `#{$1}'.")
end
else
:available
Expand Down Expand Up @@ -72,7 +71,7 @@ class WhoisCoUg < Base

property_supported :nameservers do
content_for_scanner.scan(/Nameserver:\s+(.+)\n/).flatten.map do |name|
Record::Nameserver.new(name.downcase)
Record::Nameserver.new(:name => name.downcase)
end
end

Expand Down

0 comments on commit 7621ca8

Please sign in to comment.