Module: TinyConveyor
- Defined in:
- lib/tiny_conveyor.rb,
lib/tiny_conveyor/belt.rb,
lib/tiny_conveyor/parcel.rb
Overview
main file for Tiny Conveyor gem
Defined Under Namespace
Constant Summary collapse
- VERSION =
'0.0.1'
Class Method Summary collapse
-
.add_parcel(name, description, action) ⇒ Array<Parcel>
Pending parcels.
- .belt ⇒ Belt
-
.new ⇒ Belt
Newly created belt.
-
.parcels ⇒ Array<Parcel>
Pending parcels.
-
.remove_parcel(uuid) ⇒ Array<Parcel>
Pending parcels.
-
.running? ⇒ boolean
True if the belt is running, false otherwhise.
- .start_belt ⇒ Object
Class Method Details
.add_parcel(name, description, action) ⇒ Array<Parcel>
Returns pending parcels.
20 21 22 |
# File 'lib/tiny_conveyor.rb', line 20 def add_parcel(name, description, action) belt.add_parcel(name, description, action) end |
.new ⇒ Belt
Returns newly created belt.
12 13 14 |
# File 'lib/tiny_conveyor.rb', line 12 def new belt end |
.parcels ⇒ Array<Parcel>
Returns pending parcels.
40 41 42 |
# File 'lib/tiny_conveyor.rb', line 40 def parcels belt.parcels end |
.remove_parcel(uuid) ⇒ Array<Parcel>
Returns pending parcels.
26 27 28 |
# File 'lib/tiny_conveyor.rb', line 26 def remove_parcel(uuid) belt.remove_parcel_by_uuid(uuid) end |
.running? ⇒ boolean
Returns true if the belt is running, false otherwhise.
35 36 37 |
# File 'lib/tiny_conveyor.rb', line 35 def running? belt.running? end |
.start_belt ⇒ Object
30 31 32 |
# File 'lib/tiny_conveyor.rb', line 30 def start_belt belt.start_belt end |