Class: Clever::Models::Photo

Inherits:
Object
  • Object
show all
Defined in:
lib/clever/models/photo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



2
3
4
# File 'lib/clever/models/photo.rb', line 2

def data
  @data
end

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/clever/models/photo.rb', line 2

def id
  @id
end