Class: Cameraplus::PhotoRecipe
- Inherits:
-
Object
- Object
- Cameraplus::PhotoRecipe
- Defined in:
- lib/cameraplus/photo_recipe.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(data) ⇒ PhotoRecipe
constructor
A new instance of PhotoRecipe.
Constructor Details
#initialize(data) ⇒ PhotoRecipe
Returns a new instance of PhotoRecipe.
6 7 8 9 |
# File 'lib/cameraplus/photo_recipe.rb', line 6 def initialize(data) @type = data.type @value = data.value end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/cameraplus/photo_recipe.rb', line 4 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/cameraplus/photo_recipe.rb', line 4 def value @value end |