Class: PleskLib::Actions::CreateCustomer
- Inherits:
-
CreateAccount
- Object
- Base
- CreateAccount
- PleskLib::Actions::CreateCustomer
- Defined in:
- lib/plesk_lib/actions/create_customer.rb
Instance Attribute Summary collapse
-
#customer ⇒ Object
readonly
Returns the value of attribute customer.
-
#plesk_id ⇒ Object
readonly
Returns the value of attribute plesk_id.
Instance Method Summary collapse
-
#build_xml ⇒ Object
Creates Object & Packet.
-
#initialize(customer) ⇒ CreateCustomer
constructor
A new instance of CreateCustomer.
Methods inherited from CreateAccount
Methods inherited from Base
Constructor Details
#initialize(customer) ⇒ CreateCustomer
Returns a new instance of CreateCustomer.
4 5 6 |
# File 'lib/plesk_lib/actions/create_customer.rb', line 4 def initialize(customer) @customer = customer end |
Instance Attribute Details
#customer ⇒ Object (readonly)
Returns the value of attribute customer.
2 3 4 |
# File 'lib/plesk_lib/actions/create_customer.rb', line 2 def customer @customer end |
#plesk_id ⇒ Object (readonly)
Returns the value of attribute plesk_id.
2 3 4 |
# File 'lib/plesk_lib/actions/create_customer.rb', line 2 def plesk_id @plesk_id end |
Instance Method Details
#build_xml ⇒ Object
Creates Object & Packet
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/plesk_lib/actions/create_customer.rb', line 9 def build_xml xml = Builder::XmlMarkup.new xml.instruct! xml.packet(:version => '1.6.3.5') { xml.customer { xml.add{ build_gen_info(xml, @customer) } } } return xml.target! end |