Class: Lensflare::Lens
- Inherits:
-
Object
- Object
- Lensflare::Lens
- Defined in:
- lib/lensflare/lens.rb
Overview
class describing lens
Instance Attribute Summary collapse
-
#f_numbers ⇒ Object
Returns the value of attribute f_numbers.
-
#focal_lengths ⇒ Object
Returns the value of attribute focal_lengths.
-
#frame ⇒ Object
Returns the value of attribute frame.
Instance Method Summary collapse
-
#initialize(focal_lengths, f_numbers) ⇒ Lens
constructor
A new instance of Lens.
- #to_s ⇒ Object
Constructor Details
#initialize(focal_lengths, f_numbers) ⇒ Lens
Returns a new instance of Lens.
8 9 10 11 |
# File 'lib/lensflare/lens.rb', line 8 def initialize(focal_lengths, f_numbers) self.focal_lengths = focal_lengths self.f_numbers = f_numbers end |
Instance Attribute Details
#f_numbers ⇒ Object
Returns the value of attribute f_numbers.
6 7 8 |
# File 'lib/lensflare/lens.rb', line 6 def f_numbers @f_numbers end |
#focal_lengths ⇒ Object
Returns the value of attribute focal_lengths.
4 5 6 |
# File 'lib/lensflare/lens.rb', line 4 def focal_lengths @focal_lengths end |
#frame ⇒ Object
Returns the value of attribute frame.
5 6 7 |
# File 'lib/lensflare/lens.rb', line 5 def frame @frame end |
Instance Method Details
#to_s ⇒ Object
31 32 33 34 |
# File 'lib/lensflare/lens.rb', line 31 def to_s "f_numbers:\n" + f_numbers.join("\n") + "\n" + "focal_lengths:\n" + focal_lengths.join("\n") + "\n" end |