Class: Dawanda::Color
Overview
Color
Represents a single Color - has the following attributes:
- hex
-
This color’s hex value
- red
-
The color’s red value from 0-255
- green
-
The color’s green value from 0-255
- blue
-
The color’s blue value from 0-255
Instance Method Summary collapse
Methods included from Model
Instance Method Details
#products(params = {}) ⇒ Object
18 19 20 |
# File 'lib/dawanda/color.rb', line 18 def products(params = {}) Product.find_all_by_hex(hex, params) end |