Class: FamilyGallery::UserTagging
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- FamilyGallery::UserTagging
- Defined in:
- app/models/family_gallery/user_tagging.rb
Instance Method Summary collapse
Instance Method Details
#left_for_width(width) ⇒ Object
11 12 13 |
# File 'app/models/family_gallery/user_tagging.rb', line 11 def left_for_width(width) return (width * (position_left.to_f / 100)).to_i end |
#top_for_height(height) ⇒ Object
15 16 17 |
# File 'app/models/family_gallery/user_tagging.rb', line 15 def top_for_height(height) return (height * (position_top.to_f / 100)).to_i end |