Class: TakuhaiStatus::UPS
- Inherits:
-
Object
- Object
- TakuhaiStatus::UPS
- Defined in:
- lib/takuhai_status/ups.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) ⇒ UPS
constructor
A new instance of UPS.
Constructor Details
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
7 8 9 |
# File 'lib/takuhai_status/ups.rb', line 7 def key @key end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
7 8 9 |
# File 'lib/takuhai_status/ups.rb', line 7 def state @state end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
7 8 9 |
# File 'lib/takuhai_status/ups.rb', line 7 def time @time end |
Instance Method Details
#finish? ⇒ Boolean
17 18 19 |
# File 'lib/takuhai_status/ups.rb', line 17 def finish? return !!(@state =~ /配達済み/) end |