Class: TakuhaiStatus::USPS
- Inherits:
-
Object
- Object
- TakuhaiStatus::USPS
- Defined in:
- lib/takuhai_status/usps.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) ⇒ USPS
constructor
A new instance of USPS.
Constructor Details
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/takuhai_status/usps.rb', line 6 def key @key end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
6 7 8 |
# File 'lib/takuhai_status/usps.rb', line 6 def state @state end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
6 7 8 |
# File 'lib/takuhai_status/usps.rb', line 6 def time @time end |
Instance Method Details
#finish? ⇒ Boolean
15 16 17 |
# File 'lib/takuhai_status/usps.rb', line 15 def finish? return !!(@state =~ /^Delivered/) end |