Class: Nfe::Generated::NfProdutoV2::TransportInformationResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfProdutoV2::TransportInformationResource
- Defined in:
- lib/nfe/generated/nf_produto_v2/transport_information_resource.rb,
sig/nfe/generated/nf_produto_v2/transport_information_resource.rbs
Instance Attribute Summary collapse
-
#freight_modality ⇒ Object
readonly
Returns the value of attribute freight_modality.
-
#reboque ⇒ Object
readonly
Returns the value of attribute reboque.
-
#seal_number ⇒ Object
readonly
Returns the value of attribute seal_number.
-
#transp_rate ⇒ Object
readonly
Returns the value of attribute transp_rate.
-
#transport_group ⇒ Object
readonly
Returns the value of attribute transport_group.
-
#transport_vehicle ⇒ Object
readonly
Returns the value of attribute transport_vehicle.
-
#volume ⇒ Object
readonly
Returns the value of attribute volume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TransportInformationResource
constructor
A new instance of TransportInformationResource.
Constructor Details
#initialize ⇒ TransportInformationResource
Returns a new instance of TransportInformationResource.
17 |
# File 'sig/nfe/generated/nf_produto_v2/transport_information_resource.rbs', line 17
def initialize: (?freight_modality: untyped, ?reboque: ReboqueResource, ?seal_number: String?, ?transp_rate: TransportRateResource, ?transport_group: TransportGroupResource, ?transport_vehicle: TransportVehicleResource, ?volume: VolumeResource) -> void
|
Instance Attribute Details
#freight_modality ⇒ Object (readonly)
Returns the value of attribute freight_modality
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_information_resource.rb', line 9 def freight_modality @freight_modality end |
#reboque ⇒ Object (readonly)
Returns the value of attribute reboque
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_information_resource.rb', line 9 def reboque @reboque end |
#seal_number ⇒ Object (readonly)
Returns the value of attribute seal_number
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_information_resource.rb', line 9 def seal_number @seal_number end |
#transp_rate ⇒ Object (readonly)
Returns the value of attribute transp_rate
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_information_resource.rb', line 9 def transp_rate @transp_rate end |
#transport_group ⇒ Object (readonly)
Returns the value of attribute transport_group
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_information_resource.rb', line 9 def transport_group @transport_group end |
#transport_vehicle ⇒ Object (readonly)
Returns the value of attribute transport_vehicle
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_information_resource.rb', line 9 def transport_vehicle @transport_vehicle end |
#volume ⇒ Object (readonly)
Returns the value of attribute volume
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_information_resource.rb', line 9 def volume @volume end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/nfe/generated/nf_produto_v2/transport_information_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( freight_modality: payload["freightModality"], reboque: ReboqueResource.from_api(payload["reboque"]), seal_number: payload["sealNumber"], transp_rate: TransportRateResource.from_api(payload["transpRate"]), transport_group: TransportGroupResource.from_api(payload["transportGroup"]), transport_vehicle: TransportVehicleResource.from_api(payload["transportVehicle"]), volume: VolumeResource.from_api(payload["volume"]), ) end |
.new ⇒ instance
16 |
# File 'sig/nfe/generated/nf_produto_v2/transport_information_resource.rbs', line 16
def self.new: (?freight_modality: untyped, ?reboque: ReboqueResource, ?seal_number: String?, ?transp_rate: TransportRateResource, ?transport_group: TransportGroupResource, ?transport_vehicle: TransportVehicleResource, ?volume: VolumeResource) -> instance
|