Class: Cameraplus::PhotoRecipe

Inherits:
Object
  • Object
show all
Defined in:
lib/cameraplus/photo_recipe.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/cameraplus/photo_recipe.rb', line 4

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/cameraplus/photo_recipe.rb', line 4

def value
  @value
end