Class: AndParcel::Catalog

Inherits:
Object
  • Object
show all
Defined in:
lib/andparcel/catalog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nickObject (readonly)

Returns the value of attribute nick.



9
10
11
# File 'lib/andparcel/catalog.rb', line 9

def nick
  @nick
end

#pathObject (readonly)

Returns the value of attribute path.



9
10
11
# File 'lib/andparcel/catalog.rb', line 9

def path
  @path
end