Class: ClassifyCluster::Configurator::Resource
- Inherits:
-
Object
- Object
- ClassifyCluster::Configurator::Resource
- Defined in:
- lib/classify_cluster/configurator/resource.rb
Instance Attribute Summary collapse
-
#name(value = nil) ⇒ Object
readonly
Returns the value of attribute name.
-
#options(value = nil) ⇒ Object
readonly
Returns the value of attribute options.
-
#type(value = nil) ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(*args, &block) ⇒ Resource
Returns a new instance of Resource.
5 6 7 8 |
# File 'lib/classify_cluster/configurator/resource.rb', line 5 def initialize(*args, &block) @options = {} block.call self end |
Instance Attribute Details
#name(value = nil) ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/classify_cluster/configurator/resource.rb', line 4 def name @name end |
#options(value = nil) ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/classify_cluster/configurator/resource.rb', line 4 def @options end |
#type(value = nil) ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/classify_cluster/configurator/resource.rb', line 4 def type @type end |