Class: PleskLib::Subscription
- Inherits:
-
Object
- Object
- PleskLib::Subscription
- Defined in:
- lib/plesk_lib/subscription.rb
Instance Attribute Summary collapse
-
#customer_account_id ⇒ Object
Returns the value of attribute customer_account_id.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#ftp_login ⇒ Object
Returns the value of attribute ftp_login.
-
#ftp_password ⇒ Object
Returns the value of attribute ftp_password.
-
#guid ⇒ Object
Returns the value of attribute guid.
-
#id ⇒ Object
Returns the value of attribute id.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner_id ⇒ Object
Returns the value of attribute owner_id.
-
#owner_login ⇒ Object
Returns the value of attribute owner_login.
-
#reseller_account_id ⇒ Object
Returns the value of attribute reseller_account_id.
-
#service_plan_id ⇒ Object
Returns the value of attribute service_plan_id.
-
#service_plan_name ⇒ Object
Returns the value of attribute service_plan_name.
-
#vendor_guid ⇒ Object
Returns the value of attribute vendor_guid.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Subscription
constructor
A new instance of Subscription.
Constructor Details
#initialize(attributes = {}) ⇒ Subscription
Returns a new instance of Subscription.
8 9 10 11 12 |
# File 'lib/plesk_lib/subscription.rb', line 8 def initialize(attributes = {}) attributes.each_pair do |key, value| send("#{key}=", value) end if attributes.present? end |
Instance Attribute Details
#customer_account_id ⇒ Object
Returns the value of attribute customer_account_id.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def customer_account_id @customer_account_id end |
#external_id ⇒ Object
Returns the value of attribute external_id.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def external_id @external_id end |
#ftp_login ⇒ Object
Returns the value of attribute ftp_login.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def ftp_login @ftp_login end |
#ftp_password ⇒ Object
Returns the value of attribute ftp_password.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def ftp_password @ftp_password end |
#guid ⇒ Object
Returns the value of attribute guid.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def guid @guid end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def id @id end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def ip_address @ip_address end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def name @name end |
#owner_id ⇒ Object
Returns the value of attribute owner_id.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def owner_id @owner_id end |
#owner_login ⇒ Object
Returns the value of attribute owner_login.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def owner_login @owner_login end |
#reseller_account_id ⇒ Object
Returns the value of attribute reseller_account_id.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def reseller_account_id @reseller_account_id end |
#service_plan_id ⇒ Object
Returns the value of attribute service_plan_id.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def service_plan_id @service_plan_id end |
#service_plan_name ⇒ Object
Returns the value of attribute service_plan_name.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def service_plan_name @service_plan_name end |
#vendor_guid ⇒ Object
Returns the value of attribute vendor_guid.
3 4 5 |
# File 'lib/plesk_lib/subscription.rb', line 3 def vendor_guid @vendor_guid end |