Class: EPP::Contact::CheckResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/epp-client/contact/check_response.rb

Instance Method Summary collapse

Methods inherited from Response

#initialize, #method, #method_missing, #respond_to?, #respond_to_missing?

Methods included from ResponseHelper

#nodes_for_xpath, #value_for_xpath, #values_for_xpath

Constructor Details

This class inherits a constructor from EPP::Contact::Response

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EPP::Contact::Response

Instance Method Details

#available?(id) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/epp-client/contact/check_response.rb', line 6

def available?(id)
  availability[id]
end

#unavailable?(id) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/epp-client/contact/check_response.rb', line 9

def unavailable?(id)
  !available?(id)
end