class FriendlyShipping::Services::Ups::TimingOptions

Options for getting timing information from UPS @attribute [Time] pickup When the shipment will be picked up @attribute [Money] invoice_total How much the items in the shipment are worth

As this is not super important for getting timing information, we use a default
value of 50 USD here.

@attribute [Boolean] documents_only Does the shipment only contain documents? @attribute [String] customer_context A string to connect request and response in the calling code

Attributes

customer_context[R]
documents_only[R]
invoice_total[R]
pickup[R]

Public Class Methods

new( pickup: Time.now, invoice_total: Money.new(5000, 'USD'), documents_only: false, customer_context: nil ) click to toggle source
# File lib/friendly_shipping/services/ups/timing_options.rb, line 19
def initialize(
  pickup: Time.now,
  invoice_total: Money.new(5000, 'USD'),
  documents_only: false,
  customer_context: nil
)
  @pickup = pickup
  @invoice_total = invoice_total
  @documents_only = documents_only
  @customer_context = customer_context
end