Class: OrderSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/order_serializer.rb

Instance Method Summary collapse

Instance Method Details

#is_boxfillObject



8
9
10
# File 'app/serializers/order_serializer.rb', line 8

def is_boxfill
  object.boxfill?
end

#is_openObject



4
5
6
# File 'app/serializers/order_serializer.rb', line 4

def is_open
  object.open?
end