Class: ShipEngine::Domain::Carriers::ListCarriers::Carrier
- Inherits:
-
Object
- Object
- ShipEngine::Domain::Carriers::ListCarriers::Carrier
- Defined in:
- lib/shipengine/domain/carriers/list_carriers.rb
Defined Under Namespace
Classes: Option, Package, Service
Instance Attribute Summary collapse
-
#account_number ⇒ Object
readonly
Returns the value of attribute account_number.
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#carrier_code ⇒ Object
readonly
Returns the value of attribute carrier_code.
-
#carrier_id ⇒ Object
readonly
Returns the value of attribute carrier_id.
-
#friendly_name ⇒ Object
readonly
Returns the value of attribute friendly_name.
-
#has_multi_package_supporting_services ⇒ Object
readonly
Returns the value of attribute has_multi_package_supporting_services.
-
#nickname ⇒ Object
readonly
Returns the value of attribute nickname.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#packages ⇒ Object
readonly
Returns the value of attribute packages.
-
#primary ⇒ Object
readonly
Returns the value of attribute primary.
-
#requires_funded_amount ⇒ Object
readonly
Returns the value of attribute requires_funded_amount.
-
#services ⇒ Object
readonly
Returns the value of attribute services.
-
#supports_label_messages ⇒ Object
readonly
Returns the value of attribute supports_label_messages.
Instance Method Summary collapse
-
#initialize(carrier_id:, carrier_code:, account_number:, requires_funded_amount:, balance:, nickname:, friendly_name:, primary:, has_multi_package_supporting_services:, supports_label_messages:, services:, packages:, options:) ⇒ Carrier
constructor
A new instance of Carrier.
Constructor Details
#initialize(carrier_id:, carrier_code:, account_number:, requires_funded_amount:, balance:, nickname:, friendly_name:, primary:, has_multi_package_supporting_services:, supports_label_messages:, services:, packages:, options:) ⇒ Carrier
Returns a new instance of Carrier.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 51 def initialize(carrier_id:, carrier_code:, account_number:, requires_funded_amount:, balance:, nickname:, friendly_name:, primary:, has_multi_package_supporting_services:, supports_label_messages:, services:, packages:, options:) # rubocop:todo Metrics/ParameterLists @carrier_id = carrier_id @carrier_code = carrier_code @account_number = account_number @requires_funded_amount = requires_funded_amount @balance = balance @nickname = nickname @friendly_name = friendly_name @primary = primary @has_multi_package_supporting_services = has_multi_package_supporting_services @supports_label_messages = @services = services @packages = packages @options = end |
Instance Attribute Details
#account_number ⇒ Object (readonly)
Returns the value of attribute account_number.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def account_number @account_number end |
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def balance @balance end |
#carrier_code ⇒ Object (readonly)
Returns the value of attribute carrier_code.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def carrier_code @carrier_code end |
#carrier_id ⇒ Object (readonly)
Returns the value of attribute carrier_id.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def carrier_id @carrier_id end |
#friendly_name ⇒ Object (readonly)
Returns the value of attribute friendly_name.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def friendly_name @friendly_name end |
#has_multi_package_supporting_services ⇒ Object (readonly)
Returns the value of attribute has_multi_package_supporting_services.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def has_multi_package_supporting_services @has_multi_package_supporting_services end |
#nickname ⇒ Object (readonly)
Returns the value of attribute nickname.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def nickname @nickname end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def @options end |
#packages ⇒ Object (readonly)
Returns the value of attribute packages.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def packages @packages end |
#primary ⇒ Object (readonly)
Returns the value of attribute primary.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def primary @primary end |
#requires_funded_amount ⇒ Object (readonly)
Returns the value of attribute requires_funded_amount.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def requires_funded_amount @requires_funded_amount end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def services @services end |
#supports_label_messages ⇒ Object (readonly)
Returns the value of attribute supports_label_messages.
36 37 38 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 36 def @supports_label_messages end |