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



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



220
221
222
# File 'lib/arvados/collection.rb', line 220

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



220
221
222
# File 'lib/arvados/collection.rb', line 220

def path
  @path
end