Class: Redditor::Image

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/redditor/image.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#object_idObject

Returns the value of attribute object_id.



4
5
6
# File 'app/models/redditor/image.rb', line 4

def object_id
  @object_id
end

Class Method Details

.model_nameObject



11
12
13
# File 'app/models/redditor/image.rb', line 11

def self.model_name
  ActiveModel::Name.new(self, nil, 'Image')
end

Instance Method Details

#to_partial_pathObject



15
16
17
# File 'app/models/redditor/image.rb', line 15

def to_partial_path
  'redditor/image'
end