Class: Arv::Collection::CollectionItem
- Inherits:
-
Object
- Object
- Arv::Collection::CollectionItem
- Defined in:
- lib/arvados/collection.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ CollectionItem
constructor
A new instance of CollectionItem.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
224 225 226 |
# File 'lib/arvados/collection.rb', line 224 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
224 225 226 |
# File 'lib/arvados/collection.rb', line 224 def path @path end |