Class: FriendlyShipping::ItemOptions
- Inherits:
-
Object
- Object
- FriendlyShipping::ItemOptions
- Defined in:
- lib/friendly_shipping/item_options.rb
Overview
Base class for item options. Used when serializing API requests.
Direct Known Subclasses
Services::RL::ItemOptions, Services::ShipEngine::LabelItemOptions, Services::ShipEngine::RatesItemOptions, Services::ShipEngineLTL::ItemOptions, Services::TForceFreight::ItemOptions, Services::Ups::LabelItemOptions, Services::UpsFreight::RatesItemOptions, Services::UpsJson::LabelItemOptions, Services::UpsJson::RatesItemOptions
Instance Attribute Summary collapse
-
#item_id ⇒ String
readonly
The ID for the item that belongs to these options.
Instance Method Summary collapse
-
#initialize(item_id:) ⇒ ItemOptions
constructor
A new instance of ItemOptions.
Constructor Details
#initialize(item_id:) ⇒ ItemOptions
Returns a new instance of ItemOptions.
10 11 12 |
# File 'lib/friendly_shipping/item_options.rb', line 10 def initialize(item_id:) @item_id = item_id end |
Instance Attribute Details
#item_id ⇒ String (readonly)
Returns the ID for the item that belongs to these options.
7 8 9 |
# File 'lib/friendly_shipping/item_options.rb', line 7 def item_id @item_id end |