Class: PleskLib::ServicePlan
- Inherits:
-
Object
- Object
- PleskLib::ServicePlan
- Defined in:
- lib/plesk_lib/service_plan.rb
Instance Attribute Summary collapse
-
#domains ⇒ Object
Returns the value of attribute domains.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#guid ⇒ Object
Returns the value of attribute guid.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mailboxes ⇒ Object
Returns the value of attribute mailboxes.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner_id ⇒ Object
Returns the value of attribute owner_id.
-
#storage ⇒ Object
Returns the value of attribute storage.
-
#traffic ⇒ Object
Returns the value of attribute traffic.
Instance Method Summary collapse
-
#initialize(name, attributes = {}) ⇒ ServicePlan
constructor
A new instance of ServicePlan.
- #to_s ⇒ Object
Constructor Details
#initialize(name, attributes = {}) ⇒ ServicePlan
Returns a new instance of ServicePlan.
6 7 8 9 10 11 |
# File 'lib/plesk_lib/service_plan.rb', line 6 def initialize(name, attributes = {}) @name = name attributes.each_pair do |key, value| send("#{key}=", value) end if attributes.present? end |
Instance Attribute Details
#domains ⇒ Object
Returns the value of attribute domains.
3 4 5 |
# File 'lib/plesk_lib/service_plan.rb', line 3 def domains @domains end |
#external_id ⇒ Object
Returns the value of attribute external_id.
3 4 5 |
# File 'lib/plesk_lib/service_plan.rb', line 3 def external_id @external_id end |
#guid ⇒ Object
Returns the value of attribute guid.
3 4 5 |
# File 'lib/plesk_lib/service_plan.rb', line 3 def guid @guid end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/plesk_lib/service_plan.rb', line 3 def id @id end |
#mailboxes ⇒ Object
Returns the value of attribute mailboxes.
3 4 5 |
# File 'lib/plesk_lib/service_plan.rb', line 3 def mailboxes @mailboxes end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/plesk_lib/service_plan.rb', line 3 def name @name end |
#owner_id ⇒ Object
Returns the value of attribute owner_id.
3 4 5 |
# File 'lib/plesk_lib/service_plan.rb', line 3 def owner_id @owner_id end |
#storage ⇒ Object
Returns the value of attribute storage.
3 4 5 |
# File 'lib/plesk_lib/service_plan.rb', line 3 def storage @storage end |
#traffic ⇒ Object
Returns the value of attribute traffic.
3 4 5 |
# File 'lib/plesk_lib/service_plan.rb', line 3 def traffic @traffic end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/plesk_lib/service_plan.rb', line 13 def to_s "#<#{self.class}: id=#{self.id} name=#{self.name}, guid: #{self.guid}>" end |