Class: Minfraud::Components::Shipping
- Inherits:
-
Addressable
- Object
- Base
- Addressable
- Minfraud::Components::Shipping
- Includes:
- Enum
- Defined in:
- lib/minfraud/components/shipping.rb
Instance Attribute Summary collapse
-
#delivery_speed ⇒ String
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 = {}) ⇒ Minfraud::Components::Shipping
constructor
Creates Minfraud::Components::Shipping instance.
Methods included from Enum
Methods inherited from Base
Constructor Details
#initialize(params = {}) ⇒ Minfraud::Components::Shipping
Creates Minfraud::Components::Shipping instance
16 17 18 19 |
# File 'lib/minfraud/components/shipping.rb', line 16 def initialize(params = {}) @delivery_speed = params[:delivery_speed] super end |
Instance Attribute Details
#delivery_speed ⇒ String
Returns The shipping delivery speed for the order. The valid values are:
> same_day
> overnight
> expedited
> standard.
11 |
# File 'lib/minfraud/components/shipping.rb', line 11 enum_accessor :delivery_speed, [:same_day, :overnight, :expedited, :standard] |