Class: GProv::Provision::CustomerID
- Defined in:
- lib/gprov/provision/customerid.rb
Instance Attribute Summary
Attributes inherited from EntryBase
Class Method Summary collapse
Methods inherited from EntryBase
#attributes_from_hash, #initialize, #xml_to_hash
Methods included from EntryBase::ClassMethods
#attribute_names, #attribute_titles, #attributes, #xmlattr
Constructor Details
This class inherits a constructor from GProv::Provision::EntryBase
Class Method Details
.get(connection, options = {}) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/gprov/provision/customerid.rb', line 33 def self.get(connection, ={}) response = connection.get("/customer/2.0/customerId") document = Nokogiri::XML(response.body) xml = document.root new(:status => :clean, :connection => connection, :source => xml) end |