Class: Staypuft::Deployment::CinderService::Equallogic
- Inherits:
-
Object
- Object
- Staypuft::Deployment::CinderService::Equallogic
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Serializers::JSON, ActiveModel::Validations
- Defined in:
- app/models/staypuft/deployment/cinder_service/equallogic.rb
Defined Under Namespace
Classes: SanIpValueValidator
Instance Attribute Summary collapse
-
#chap_login ⇒ Object
Returns the value of attribute chap_login.
-
#chap_password ⇒ Object
Returns the value of attribute chap_password.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#group_name ⇒ Object
Returns the value of attribute group_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#pool ⇒ Object
Returns the value of attribute pool.
-
#san_ip ⇒ Object
Returns the value of attribute san_ip.
-
#san_login ⇒ Object
Returns the value of attribute san_login.
-
#san_password ⇒ Object
Returns the value of attribute san_password.
-
#thin_provision ⇒ Object
Returns the value of attribute thin_provision.
-
#use_chap ⇒ Object
Returns the value of attribute use_chap.
Class Method Summary collapse
Instance Method Summary collapse
- #attributes ⇒ Object
- #attributes=(attrs) ⇒ Object
-
#initialize(attrs = {}) ⇒ Equallogic
constructor
A new instance of Equallogic.
Constructor Details
#initialize(attrs = {}) ⇒ Equallogic
Returns a new instance of Equallogic.
12 13 14 15 16 17 18 19 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 12 def initialize(attrs = {}) @errors = ActiveModel::Errors.new(self) self.attributes = attrs self.thin_provision = true self.use_chap = false self.chap_login = '' self.chap_password = '' end |
Instance Attribute Details
#chap_login ⇒ Object
Returns the value of attribute chap_login.
8 9 10 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 8 def chap_login @chap_login end |
#chap_password ⇒ Object
Returns the value of attribute chap_password.
8 9 10 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 8 def chap_password @chap_password end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
10 11 12 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 10 def errors @errors end |
#group_name ⇒ Object
Returns the value of attribute group_name.
8 9 10 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 8 def group_name @group_name end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 8 def id @id end |
#pool ⇒ Object
Returns the value of attribute pool.
8 9 10 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 8 def pool @pool end |
#san_ip ⇒ Object
Returns the value of attribute san_ip.
8 9 10 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 8 def san_ip @san_ip end |
#san_login ⇒ Object
Returns the value of attribute san_login.
8 9 10 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 8 def san_login @san_login end |
#san_password ⇒ Object
Returns the value of attribute san_password.
8 9 10 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 8 def san_password @san_password end |
#thin_provision ⇒ Object
Returns the value of attribute thin_provision.
8 9 10 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 8 def thin_provision @thin_provision end |
#use_chap ⇒ Object
Returns the value of attribute use_chap.
8 9 10 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 8 def use_chap @use_chap end |
Class Method Details
.human_attribute_name(attr, options = {}) ⇒ Object
21 22 23 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 21 def self.human_attribute_name(attr, = {}) attr end |
.lookup_ancestors ⇒ Object
25 26 27 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 25 def self.lookup_ancestors [self] end |
Instance Method Details
#attributes ⇒ Object
29 30 31 32 33 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 29 def attributes { 'san_ip' => nil, 'san_login' => nil, 'san_password' => nil, 'pool' => nil, 'group_name' => nil, 'thin_provision' => nil, 'use_chap' => nil, 'chap_login' => nil, 'chap_password' => nil } end |
#attributes=(attrs) ⇒ Object
35 36 37 |
# File 'app/models/staypuft/deployment/cinder_service/equallogic.rb', line 35 def attributes=(attrs) attrs.each { |attr, value| send "#{attr}=", value } unless attrs.nil? end |