Class: ClassifyCluster::Configurator::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/classify_cluster/configurator/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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
  @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