Module: Occi::Core::Helpers::AttributesAccessor

Included in:
Category
Defined in:
lib/occi/core/helpers/attributes_accessor.rb

Overview

Introduces attributes accessor as a shortcut to getting to the `attributes` values inside the receiver.

Author:

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object

:nodoc:


11
12
13
# File 'lib/occi/core/helpers/attributes_accessor.rb', line 11

def [](key)
  attributes[key]
end

#[]=(key, val) ⇒ Object

:nodoc:


16
17
18
# File 'lib/occi/core/helpers/attributes_accessor.rb', line 16

def []=(key, val)
  attributes[key] = val
end