Class: PleskLib::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/plesk_lib/account.rb

Direct Known Subclasses

Customer, Reseller

Instance Attribute Summary collapse

Instance Method Summary collapse

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(, other_attributes = {})
  @login = 
  other_attributes.each_pair do |key, value|
    send("#{key}=", value)
  end if other_attributes.present?
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def address
  @address
end

#cityObject

Returns the value of attribute city.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def city
  @city
end

#company_nameObject

Returns the value of attribute company_name.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def company_name
  @company_name
end

#countryObject

Returns the value of attribute country.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def country
  @country
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def email
  @email
end

#external_idObject

Returns the value of attribute external_id.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def external_id
  @external_id
end

#faxObject

Returns the value of attribute fax.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def fax
  @fax
end

#loginObject

Returns the value of attribute login.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def 
  @login
end

#owner_idObject

Returns the value of attribute owner_id.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def owner_id
  @owner_id
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def password
  @password
end

#person_nameObject

Returns the value of attribute person_name.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def person_name
  @person_name
end

#phoneObject

Returns the value of attribute phone.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def phone
  @phone
end

#postal_codeObject

Returns the value of attribute postal_code.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def postal_code
  @postal_code
end

#stateObject

Returns the value of attribute state.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def state
  @state
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/plesk_lib/account.rb', line 3

def status
  @status
end