Class: Lensflare::Lens

Inherits:
Object
  • Object
show all
Defined in:
lib/lensflare/lens.rb

Overview

class describing lens

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numbersObject

Returns the value of attribute f_numbers.



6
7
8
# File 'lib/lensflare/lens.rb', line 6

def f_numbers
  @f_numbers
end

#focal_lengthsObject

Returns the value of attribute focal_lengths.



4
5
6
# File 'lib/lensflare/lens.rb', line 4

def focal_lengths
  @focal_lengths
end

#frameObject

Returns the value of attribute frame.



5
6
7
# File 'lib/lensflare/lens.rb', line 5

def frame
  @frame
end

Instance Method Details

#to_sObject



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