Class: Workarea::Catalog::Swatch

Inherits:
Object
  • Object
show all
Extended by:
Dragonfly::Model
Includes:
ApplicationDocument
Defined in:
app/models/workarea/catalog/swatch.rb

Direct Known Subclasses

ProductSwatch

Instance Method Summary collapse

Instance Method Details

#hex?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'app/models/workarea/catalog/swatch.rb', line 25

def hex?
  hex.present?
end

#image?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'app/models/workarea/catalog/swatch.rb', line 21

def image?
  image.present?
end