Class: FriendlyShipping::Services::Usps::TimingOptions
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::Usps::TimingOptions
- Defined in:
- lib/friendly_shipping/services/usps/timing_options.rb
Instance Attribute Summary collapse
-
#pickup ⇒ Object
readonly
Returns the value of attribute pickup.
-
#shipping_method ⇒ Object
readonly
Returns the value of attribute shipping_method.
Instance Method Summary collapse
-
#initialize(pickup: Time.now, shipping_method: nil) ⇒ TimingOptions
constructor
A new instance of TimingOptions.
Constructor Details
#initialize(pickup: Time.now, shipping_method: nil) ⇒ TimingOptions
Returns a new instance of TimingOptions.
9 10 11 12 13 14 15 |
# File 'lib/friendly_shipping/services/usps/timing_options.rb', line 9 def initialize( pickup: Time.now, shipping_method: nil ) @pickup = pickup @shipping_method = shipping_method end |
Instance Attribute Details
#pickup ⇒ Object (readonly)
Returns the value of attribute pickup.
7 8 9 |
# File 'lib/friendly_shipping/services/usps/timing_options.rb', line 7 def pickup @pickup end |
#shipping_method ⇒ Object (readonly)
Returns the value of attribute shipping_method.
7 8 9 |
# File 'lib/friendly_shipping/services/usps/timing_options.rb', line 7 def shipping_method @shipping_method end |