Class: Lcms::Engine::MaterialSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/lcms/engine/material_serializer.rb

Instance Method Summary collapse

Instance Method Details

#pdf?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/serializers/lcms/engine/material_serializer.rb', line 11

def pdf?
  object.['type'].casecmp('pdf').zero?
end