Class: Param
- Inherits:
-
OpenShift::Model
- Object
- OpenShift::Model
- Param
- Defined in:
- app/models/param.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#invalid_options ⇒ Object
Returns the value of attribute invalid_options.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#valid_options ⇒ Object
Returns the value of attribute valid_options.
Instance Method Summary collapse
-
#initialize(name = nil, type = nil, description = nil, valid_options = nil, invalid_options = nil) ⇒ Param
constructor
A new instance of Param.
Constructor Details
#initialize(name = nil, type = nil, description = nil, valid_options = nil, invalid_options = nil) ⇒ Param
Returns a new instance of Param.
4 5 6 7 8 9 10 11 12 |
# File 'app/models/param.rb', line 4 def initialize(name=nil, type=nil, description=nil, =nil, =nil) self.name = name self.type = type self.description = description self. = || Array.new self. = [self.] unless self..kind_of?(Array) self. = || Array.new self. = [self.] unless self..kind_of?(Array) end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'app/models/param.rb', line 2 def description @description end |
#invalid_options ⇒ Object
Returns the value of attribute invalid_options.
2 3 4 |
# File 'app/models/param.rb', line 2 def @invalid_options end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'app/models/param.rb', line 2 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
2 3 4 |
# File 'app/models/param.rb', line 2 def type @type end |
#valid_options ⇒ Object
Returns the value of attribute valid_options.
2 3 4 |
# File 'app/models/param.rb', line 2 def @valid_options end |