Class: Serverspec::Attributes

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/serverspec/attributes.rb

Instance Method Summary collapse

Constructor Details

#initializeAttributes

Returns a new instance of Attributes.



6
7
8
# File 'lib/serverspec/attributes.rb', line 6

def initialize
  @attr = {}
end

Instance Method Details

#attributes(attr = nil) ⇒ Object



9
10
11
12
13
14
# File 'lib/serverspec/attributes.rb', line 9

def attributes(attr=nil)
  if ! attr.nil?
    @attr = attr
  end
  @attr
end