Class: TakuhaiStatus::Sagawa
- Inherits:
-
Object
- Object
- TakuhaiStatus::Sagawa
- Defined in:
- lib/takuhai_status/sagawa.rb
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) ⇒ Sagawa
constructor
A new instance of Sagawa.
Constructor Details
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/takuhai_status/sagawa.rb', line 5 def key @key end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
5 6 7 |
# File 'lib/takuhai_status/sagawa.rb', line 5 def state @state end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
5 6 7 |
# File 'lib/takuhai_status/sagawa.rb', line 5 def time @time end |
Instance Method Details
#finish? ⇒ Boolean
14 15 16 |
# File 'lib/takuhai_status/sagawa.rb', line 14 def finish? return !!(@state =~ /営業所へお問い合わせください。|配達は終了致しました。$|^配達完了|引渡完了/) end |