Class: Photo

Inherits:
Object
  • Object
show all
Defined in:
lib/multistockphoto/photo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ Photo

Returns a new instance of Photo.



4
5
6
# File 'lib/multistockphoto/photo.rb', line 4

def initialize(filename)
  @filename = filename
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



2
3
4
# File 'lib/multistockphoto/photo.rb', line 2

def filename
  @filename
end