Class: ShipEngine::Domain::Carriers::ListCarriers::Carrier::Service
- Inherits:
-
Object
- Object
- ShipEngine::Domain::Carriers::ListCarriers::Carrier::Service
- Defined in:
- lib/shipengine/domain/carriers/list_carriers.rb
Instance Attribute Summary collapse
-
#carrier_code ⇒ Object
readonly
Returns the value of attribute carrier_code.
-
#carrier_id ⇒ Object
readonly
Returns the value of attribute carrier_id.
-
#domestic ⇒ Object
readonly
Returns the value of attribute domestic.
-
#international ⇒ Object
readonly
Returns the value of attribute international.
-
#is_multi_package_supported ⇒ Object
readonly
Returns the value of attribute is_multi_package_supported.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#service_code ⇒ Object
readonly
Returns the value of attribute service_code.
Instance Method Summary collapse
-
#initialize(carrier_id:, carrier_code:, service_code:, name:, domestic:, international:, is_multi_package_supported:) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(carrier_id:, carrier_code:, service_code:, name:, domestic:, international:, is_multi_package_supported:) ⇒ Service
Returns a new instance of Service.
78 79 80 81 82 83 84 85 86 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 78 def initialize(carrier_id:, carrier_code:, service_code:, name:, domestic:, international:, is_multi_package_supported:) # rubocop:todo Metrics/ParameterLists @carrier_id = carrier_id @carrier_code = carrier_code @service_code = service_code @name = name @domestic = domestic @international = international @is_multi_package_supported = is_multi_package_supported end |
Instance Attribute Details
#carrier_code ⇒ Object (readonly)
Returns the value of attribute carrier_code.
68 69 70 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 68 def carrier_code @carrier_code end |
#carrier_id ⇒ Object (readonly)
Returns the value of attribute carrier_id.
68 69 70 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 68 def carrier_id @carrier_id end |
#domestic ⇒ Object (readonly)
Returns the value of attribute domestic.
68 69 70 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 68 def domestic @domestic end |
#international ⇒ Object (readonly)
Returns the value of attribute international.
68 69 70 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 68 def international @international end |
#is_multi_package_supported ⇒ Object (readonly)
Returns the value of attribute is_multi_package_supported.
68 69 70 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 68 def is_multi_package_supported @is_multi_package_supported end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
68 69 70 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 68 def name @name end |
#service_code ⇒ Object (readonly)
Returns the value of attribute service_code.
68 69 70 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 68 def service_code @service_code end |