Class: Minfraud::Components::Shipping
- Inherits:
-
Addressable
- Object
- Base
- Addressable
- Minfraud::Components::Shipping
- Includes:
- Enum
- Defined in:
- lib/minfraud/components/shipping.rb
Overview
Shipping corresponds to the shipping object of a minFraud request.
Instance Attribute Summary collapse
-
#delivery_speed ⇒ Symbol?
The shipping delivery speed for the order.
Attributes inherited from Addressable
#address, #address_2, #city, #company, #country, #first_name, #last_name, #phone_country_code, #phone_number, #postal, #region
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Shipping
constructor
A new instance of Shipping.
Methods included from Enum
Methods inherited from Base
Constructor Details
#initialize(params = {}) ⇒ Shipping
Returns a new instance of Shipping.
21 22 23 24 |
# File 'lib/minfraud/components/shipping.rb', line 21 def initialize(params = {}) self.delivery_speed = params[:delivery_speed] super end |
Instance Attribute Details
#delivery_speed ⇒ Symbol?
The shipping delivery speed for the order. Must be one of :same_day
, :overnight
, :expedited
, or :standard
.
17 |
# File 'lib/minfraud/components/shipping.rb', line 17 enum_accessor :delivery_speed, %i[same_day overnight expedited standard] |