Class: TakuhaiStatus::FedEx
- Inherits:
-
Object
- Object
- TakuhaiStatus::FedEx
- Defined in:
- lib/takuhai_status/fedex.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) ⇒ FedEx
constructor
A new instance of FedEx.
Constructor Details
#initialize(key) ⇒ FedEx
Returns a new instance of FedEx.
9 10 11 12 |
# File 'lib/takuhai_status/fedex.rb', line 9 def initialize(key) @key = key @time, @state = check end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/takuhai_status/fedex.rb', line 6 def key @key end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
6 7 8 |
# File 'lib/takuhai_status/fedex.rb', line 6 def state @state end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
6 7 8 |
# File 'lib/takuhai_status/fedex.rb', line 6 def time @time end |
Instance Method Details
#finish? ⇒ Boolean
14 15 16 |
# File 'lib/takuhai_status/fedex.rb', line 14 def finish? return !!(@state =~ /認可済み業者に委託|配達完了|貨物情報はFedExに送信されました/) end |