Class: Photo
- Inherits:
-
Object
- Object
- Photo
- Defined in:
- lib/multistockphoto/photo.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(filename) ⇒ Photo
constructor
A new instance of Photo.
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
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
2 3 4 |
# File 'lib/multistockphoto/photo.rb', line 2 def filename @filename end |