Class: Halation::Config::Lens
- Inherits:
-
Object
- Object
- Halation::Config::Lens
- Defined in:
- lib/halation/config/lens.rb
Overview
A lens profile.
Instance Attribute Summary collapse
-
#focal_length ⇒ Object
readonly
Returns the value of attribute focal_length.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#tag ⇒ Object
readonly
A user-created ID.
Instance Method Summary collapse
-
#initialize(yaml) ⇒ Lens
constructor
A new instance of Lens.
- #to_s ⇒ String
Constructor Details
Instance Attribute Details
#focal_length ⇒ Object (readonly)
Returns the value of attribute focal_length.
10 11 12 |
# File 'lib/halation/config/lens.rb', line 10 def focal_length @focal_length end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
9 10 11 |
# File 'lib/halation/config/lens.rb', line 9 def model @model end |
#tag ⇒ Object (readonly)
A user-created ID.
8 9 10 |
# File 'lib/halation/config/lens.rb', line 8 def tag @tag end |
Instance Method Details
#to_s ⇒ String
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/halation/config/lens.rb', line 19 def to_s "Lens\n" << [ "Tag: #{tag}", "Model: #{model}", "Focal Length: #{focal_length}", ] .map { |line| " #{line}" } .join("\n") end |