Class: Arv::Collection::CollectionItem

Inherits:
Object
  • Object
show all
Defined in:
lib/arvados/collection.rb

Direct Known Subclasses

CollectionFile, CollectionStream

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ CollectionItem

Returns a new instance of CollectionItem.



226
227
228
229
# File 'lib/arvados/collection.rb', line 226

def initialize(path)
  @path = path
  @name = File.basename(path)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



224
225
226
# File 'lib/arvados/collection.rb', line 224

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



224
225
226
# File 'lib/arvados/collection.rb', line 224

def path
  @path
end