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