Skip to content

Commit

Permalink
Flag additional (proposed) properties (references #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Oct 21, 2010
1 parent 3513cb2 commit 5e07387
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/whois/answer/parser/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ def contacts
contacts.compact
end

# NEWPROPERTY
#
# Checks whether this is a throttle response.
# The default implementation always returns false.
#
Expand Down
2 changes: 2 additions & 0 deletions lib/whois/answer/parser/whois.nic.hu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,12 @@ class WhoisNicHu < Base
end


# NEWPROPERTY
def registrar_contact
contact("registrar", nil)
end

# NEWPROPERTY
def zone_contact
contact("zone-c", nil)
end
Expand Down
3 changes: 3 additions & 0 deletions lib/whois/answer/parser/whois.publicinterestregistry.net.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,18 @@ class WhoisPublicinterestregistryNet < Base
end


# NEWPROPERTY
property_supported :changed? do |other|
!unchanged?(other)
end

# NEWPROPERTY
property_supported :unchanged? do |other|
self == other ||
self.content.to_s == other.content.to_s
end

# NEWPROPERTY
def throttle?
!!node("status-throttle")
end
Expand Down

0 comments on commit 5e07387

Please sign in to comment.