Class: AndParcel::Catalog
- Inherits:
-
Object
- Object
- AndParcel::Catalog
- Defined in:
- lib/andparcel/catalog.rb
Instance Attribute Summary collapse
-
#nick ⇒ Object
readonly
Returns the value of attribute nick.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Catalog
constructor
A new instance of Catalog.
Constructor Details
#initialize(path) ⇒ Catalog
Returns a new instance of Catalog.
11 12 13 14 |
# File 'lib/andparcel/catalog.rb', line 11 def initialize(path) @path=path @nick=File.basename(path, '.json') end |
Instance Attribute Details
#nick ⇒ Object (readonly)
Returns the value of attribute nick.
9 10 11 |
# File 'lib/andparcel/catalog.rb', line 9 def nick @nick end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
9 10 11 |
# File 'lib/andparcel/catalog.rb', line 9 def path @path end |