Class: NominetEPP::Client
- Inherits:
-
Object
- Object
- NominetEPP::Client
- Includes:
- Helpers, Operations::Check, Operations::Create, Operations::Delete, Operations::Fork, Operations::Hello, Operations::Info, Operations::List, Operations::Lock, Operations::Merge, Operations::Poll, Operations::Renew, Operations::Transfer, Operations::Unlock, Operations::Unrenew, Operations::Update
- Defined in:
- lib/nominet-epp.rb
Overview
Front end interface Client to the NominetEPP Service
Constant Summary collapse
- DEFAULT_SERVICES =
Default Nominet Service URNs
%w(http://www.nominet.org.uk/epp/xml/nom-domain-2.0 http://www.nominet.org.uk/epp/xml/nom-notifications-2.0 urn:ietf:params:xml:ns:host-1.0)
Instance Method Summary collapse
-
#initialize(tag, passwd, server = 'epp.nominet.org.uk') ⇒ Client
constructor
Create a new instance of NominetEPP::Client.
- #inspect ⇒ Object
-
#last_error_info ⇒ Hash
Returns the last Nominet failData response found.
-
#last_message ⇒ String
Returns the last EPP message received.
-
#last_response ⇒ EPP::Response
Returns the last EPP::Response received.
-
#namespaces ⇒ Hash
Nominet Namespaces by prefixes.
-
#schemaLocations ⇒ Hash
Nominet Schema Locations by prefix.
Methods included from Operations::Update
Methods included from Operations::Unrenew
Methods included from Operations::Unlock
Methods included from Operations::Transfer
Methods included from Operations::Renew
Methods included from Operations::Poll
Methods included from Operations::Merge
Methods included from Operations::Lock
Methods included from Operations::List
Methods included from Operations::Info
Methods included from Operations::Hello
Methods included from Operations::Fork
Methods included from Operations::Delete
Methods included from Operations::Create
Methods included from Operations::Check
Methods included from Helpers
#account_contact_to_xml, #account_contacts_to_xml, #account_fields_xml, #addr_to_xml, #contact_to_xml, #domain_host_xml, #domain_ns_xml, #fixup_account_contacts, #generic_field_to_xml
Constructor Details
#initialize(tag, passwd, server = 'epp.nominet.org.uk') ⇒ Client
Create a new instance of NominetEPP::Client
21 22 23 24 |
# File 'lib/nominet-epp.rb', line 21 def initialize(tag, passwd, server = 'epp.nominet.org.uk') @tag, @server = tag, server @client = EPP::Client.new(tag, passwd, server, :services => DEFAULT_SERVICES) end |
Instance Method Details
#inspect ⇒ Object
27 28 29 |
# File 'lib/nominet-epp.rb', line 27 def inspect "#<#{self.class} #{@tag}@#{@server}>" end |
#last_error_info ⇒ Hash
This is presently only set by certain method calls, so it may not always be present.
Returns the last Nominet failData response found
51 52 53 |
# File 'lib/nominet-epp.rb', line 51 def last_error_info @error_info end |
#last_message ⇒ String
Returns the last EPP message received
42 43 44 |
# File 'lib/nominet-epp.rb', line 42 def last_response. end |
#last_response ⇒ EPP::Response
Returns the last EPP::Response received
34 35 36 |
# File 'lib/nominet-epp.rb', line 34 def last_response @resp end |
#namespaces ⇒ Hash
Returns Nominet Namespaces by prefixes.
56 57 58 59 60 61 62 63 |
# File 'lib/nominet-epp.rb', line 56 def namespaces { :domain => 'http://www.nominet.org.uk/epp/xml/nom-domain-2.0', :account => 'http://www.nominet.org.uk/epp/xml/nom-account-2.0', :contact => 'http://www.nominet.org.uk/epp/xml/nom-contact-2.0', :tag => 'http://www.nominet.org.uk/epp/xml/nom-tag-1.0', :n => 'http://www.nominet.org.uk/epp/xml/nom-notifications-2.0', :host => 'urn:ietf:params:xml:ns:host-1.0' } end |
#schemaLocations ⇒ Hash
Returns Nominet Schema Locations by prefix.
66 67 68 69 70 71 72 |
# File 'lib/nominet-epp.rb', line 66 def schemaLocations { :domain => 'http://www.nominet.org.uk/epp/xml/nom-domain-2.0 nom-domain-2.0.xsd', :account => 'http://www.nominet.org.uk/epp/xml/nom-account-2.0 nom-account-2.0.xsd', :contact => 'http://www.nominet.org.uk/epp/xml/nom-contact-2.0 nom-contact-1.0.xsd', :tag => 'http://www.nominet.org.uk/epp/xml/nom-tag-1.0 nom-tag-1.0.xsd', :n => 'http://www.nominet.org.uk/epp/xml/nom-notifications-2.0 nom-notifications-2.0.xsd' } end |