Class: ProfilePictureSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Includes:
NullAttributeReplacer
Defined in:
app/serializers/profile_picture_serializer.rb

Instance Method Summary collapse

Instance Method Details

#image_large_pathObject



11
12
13
# File 'app/serializers/profile_picture_serializer.rb', line 11

def image_large_path
  object.image_url :large
end

#image_small_pathObject



15
16
17
# File 'app/serializers/profile_picture_serializer.rb', line 15

def image_small_path
  object.image_url :small
end

#profile_idObject



7
8
9
# File 'app/serializers/profile_picture_serializer.rb', line 7

def profile_id
	object.imageable_id
end