Class: Clever::Models::Photo
- Inherits:
-
Object
- Object
- Clever::Models::Photo
- Defined in:
- lib/clever/models/photo.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(params) ⇒ Photo
constructor
A new instance of Photo.
Constructor Details
#initialize(params) ⇒ Photo
Returns a new instance of Photo.
4 5 6 |
# File 'lib/clever/models/photo.rb', line 4 def initialize params params.each { |k,v| instance_variable_set("@#{k}", v) unless v.nil? } end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
2 3 4 |
# File 'lib/clever/models/photo.rb', line 2 def data @data end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/clever/models/photo.rb', line 2 def id @id end |