Class: Workarea::Shipping::Rate

Inherits:
Object
  • Object
show all
Includes:
ApplicationDocument
Defined in:
app/models/workarea/shipping/rate.rb

Instance Method Summary collapse

Methods included from ApplicationDocument

#releasable?

Methods included from Sidekiq::Callbacks

add_worker, assert_valid_config!, async, caching_classes?, disable, enable, inline, #run_callbacks, workers, workers_list

Methods included from Mongoid::Document

#embedded_children

Instance Method Details

#tiered?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/models/workarea/shipping/rate.rb', line 14

def tiered?
  !tier_min.nil? || !tier_max.nil?
end