Class: TakuhaiStatus::TMGCargo
- Inherits:
-
Object
- Object
- TakuhaiStatus::TMGCargo
- Defined in:
- lib/takuhai_status/tmg_cargo.rb
Constant Summary collapse
- @@conn =
nil
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
- #finish? ⇒ Boolean
-
#initialize(key) ⇒ TMGCargo
constructor
A new instance of TMGCargo.
Constructor Details
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
8 9 10 |
# File 'lib/takuhai_status/tmg_cargo.rb', line 8 def key @key end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
8 9 10 |
# File 'lib/takuhai_status/tmg_cargo.rb', line 8 def state @state end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
8 9 10 |
# File 'lib/takuhai_status/tmg_cargo.rb', line 8 def time @time end |
Instance Method Details
#finish? ⇒ Boolean
18 19 20 |
# File 'lib/takuhai_status/tmg_cargo.rb', line 18 def finish? return !!(@state =~ /配達完了|返品/) end |