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.
Instance Method Summary collapse
-
#[](key) ⇒ Object
:nodoc:.
-
#[]=(key, val) ⇒ Object
:nodoc:.
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 |