Class: Alula::Storage::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/alula/storages/item.rb

Direct Known Subclasses

FileItem

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/alula/storages/item.rb', line 4

def name
  @name
end