Class: PleskLib::Account
- Inherits:
-
Object
- Object
- PleskLib::Account
- Defined in:
- lib/plesk_lib/account.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#city ⇒ Object
Returns the value of attribute city.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#country ⇒ Object
Returns the value of attribute country.
-
#email ⇒ Object
Returns the value of attribute email.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#fax ⇒ Object
Returns the value of attribute fax.
-
#login ⇒ Object
Returns the value of attribute login.
-
#owner_id ⇒ Object
Returns the value of attribute owner_id.
-
#password ⇒ Object
Returns the value of attribute password.
-
#person_name ⇒ Object
Returns the value of attribute person_name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#state ⇒ Object
Returns the value of attribute state.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(login, other_attributes = {}) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(login, other_attributes = {}) ⇒ Account
Returns a new instance of Account.
7 8 9 10 11 12 |
# File 'lib/plesk_lib/account.rb', line 7 def initialize(login, other_attributes = {}) @login = login other_attributes.each_pair do |key, value| send("#{key}=", value) end if other_attributes.present? end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def address @address end |
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def city @city end |
#company_name ⇒ Object
Returns the value of attribute company_name.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def company_name @company_name end |
#country ⇒ Object
Returns the value of attribute country.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def country @country end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def email @email end |
#external_id ⇒ Object
Returns the value of attribute external_id.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def external_id @external_id end |
#fax ⇒ Object
Returns the value of attribute fax.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def fax @fax end |
#login ⇒ Object
Returns the value of attribute login.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def login @login end |
#owner_id ⇒ Object
Returns the value of attribute owner_id.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def owner_id @owner_id end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def password @password end |
#person_name ⇒ Object
Returns the value of attribute person_name.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def person_name @person_name end |
#phone ⇒ Object
Returns the value of attribute phone.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def phone @phone end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def postal_code @postal_code end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def state @state end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/plesk_lib/account.rb', line 3 def status @status end |