Class: Alula::Storage::Item
- Inherits:
-
Object
- Object
- Alula::Storage::Item
- Defined in:
- lib/alula/storages/item.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(opts = {}) ⇒ Item
Returns a new instance of Item.
6 7 8 9 |
# File 'lib/alula/storages/item.rb', line 6 def initialize(opts = {}) @name = opts.delete(:name) @site = opts.delete(:site) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/alula/storages/item.rb', line 4 def name @name end |