Class: Nfe::Generated::NfProdutoV2::VehicleDetailResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfProdutoV2::VehicleDetailResource
- Defined in:
- lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb,
sig/nfe/generated/nf_produto_v2/vehicle_detail_resource.rbs
Instance Attribute Summary collapse
-
#brand_model_code ⇒ Object
readonly
Returns the value of attribute brand_model_code.
-
#chassis ⇒ Object
readonly
Returns the value of attribute chassis.
-
#color_code ⇒ Object
readonly
Returns the value of attribute color_code.
-
#color_description ⇒ Object
readonly
Returns the value of attribute color_description.
-
#denatran_color_code ⇒ Object
readonly
Returns the value of attribute denatran_color_code.
-
#engine_displacement ⇒ Object
readonly
Returns the value of attribute engine_displacement.
-
#engine_number ⇒ Object
readonly
Returns the value of attribute engine_number.
-
#engine_power ⇒ Object
readonly
Returns the value of attribute engine_power.
-
#fuel_type ⇒ Object
readonly
Returns the value of attribute fuel_type.
-
#gross_weight ⇒ Object
readonly
Returns the value of attribute gross_weight.
-
#manufacture_year ⇒ Object
readonly
Returns the value of attribute manufacture_year.
-
#maximum_traction_capacity ⇒ Object
readonly
Returns the value of attribute maximum_traction_capacity.
-
#model_year ⇒ Object
readonly
Returns the value of attribute model_year.
-
#net_weight ⇒ Object
readonly
Returns the value of attribute net_weight.
-
#operation_type ⇒ Object
readonly
Returns the value of attribute operation_type.
-
#paint_type ⇒ Object
readonly
Returns the value of attribute paint_type.
-
#restriction_type ⇒ Object
readonly
Returns the value of attribute restriction_type.
-
#seating_capacity ⇒ Object
readonly
Returns the value of attribute seating_capacity.
-
#serial_number ⇒ Object
readonly
Returns the value of attribute serial_number.
-
#vehicle_condition ⇒ Object
readonly
Returns the value of attribute vehicle_condition.
-
#vehicle_species ⇒ Object
readonly
Returns the value of attribute vehicle_species.
-
#vehicle_type ⇒ Object
readonly
Returns the value of attribute vehicle_type.
-
#vin_condition ⇒ Object
readonly
Returns the value of attribute vin_condition.
-
#wheel_base ⇒ Object
readonly
Returns the value of attribute wheel_base.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ VehicleDetailResource
constructor
A new instance of VehicleDetailResource.
Constructor Details
#initialize ⇒ VehicleDetailResource
Returns a new instance of VehicleDetailResource.
34 |
# File 'sig/nfe/generated/nf_produto_v2/vehicle_detail_resource.rbs', line 34
def initialize: (?brand_model_code: String?, ?chassis: String?, ?color_code: String?, ?color_description: String?, ?denatran_color_code: String?, ?engine_displacement: String?, ?engine_number: String?, ?engine_power: String?, ?fuel_type: String?, ?gross_weight: String?, ?manufacture_year: Integer?, ?maximum_traction_capacity: String?, ?model_year: Integer?, ?net_weight: String?, ?operation_type: Integer?, ?paint_type: String?, ?restriction_type: Integer?, ?seating_capacity: Integer?, ?serial_number: String?, ?vehicle_condition: Integer?, ?vehicle_species: Integer?, ?vehicle_type: String?, ?vin_condition: String?, ?wheel_base: String?) -> void
|
Instance Attribute Details
#brand_model_code ⇒ Object (readonly)
Returns the value of attribute brand_model_code
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def brand_model_code @brand_model_code end |
#chassis ⇒ Object (readonly)
Returns the value of attribute chassis
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def chassis @chassis end |
#color_code ⇒ Object (readonly)
Returns the value of attribute color_code
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def color_code @color_code end |
#color_description ⇒ Object (readonly)
Returns the value of attribute color_description
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def color_description @color_description end |
#denatran_color_code ⇒ Object (readonly)
Returns the value of attribute denatran_color_code
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def denatran_color_code @denatran_color_code end |
#engine_displacement ⇒ Object (readonly)
Returns the value of attribute engine_displacement
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def engine_displacement @engine_displacement end |
#engine_number ⇒ Object (readonly)
Returns the value of attribute engine_number
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def engine_number @engine_number end |
#engine_power ⇒ Object (readonly)
Returns the value of attribute engine_power
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def engine_power @engine_power end |
#fuel_type ⇒ Object (readonly)
Returns the value of attribute fuel_type
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def fuel_type @fuel_type end |
#gross_weight ⇒ Object (readonly)
Returns the value of attribute gross_weight
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def gross_weight @gross_weight end |
#manufacture_year ⇒ Object (readonly)
Returns the value of attribute manufacture_year
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def manufacture_year @manufacture_year end |
#maximum_traction_capacity ⇒ Object (readonly)
Returns the value of attribute maximum_traction_capacity
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def maximum_traction_capacity @maximum_traction_capacity end |
#model_year ⇒ Object (readonly)
Returns the value of attribute model_year
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def model_year @model_year end |
#net_weight ⇒ Object (readonly)
Returns the value of attribute net_weight
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def net_weight @net_weight end |
#operation_type ⇒ Object (readonly)
Returns the value of attribute operation_type
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def operation_type @operation_type end |
#paint_type ⇒ Object (readonly)
Returns the value of attribute paint_type
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def paint_type @paint_type end |
#restriction_type ⇒ Object (readonly)
Returns the value of attribute restriction_type
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def restriction_type @restriction_type end |
#seating_capacity ⇒ Object (readonly)
Returns the value of attribute seating_capacity
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def seating_capacity @seating_capacity end |
#serial_number ⇒ Object (readonly)
Returns the value of attribute serial_number
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def serial_number @serial_number end |
#vehicle_condition ⇒ Object (readonly)
Returns the value of attribute vehicle_condition
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def vehicle_condition @vehicle_condition end |
#vehicle_species ⇒ Object (readonly)
Returns the value of attribute vehicle_species
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def vehicle_species @vehicle_species end |
#vehicle_type ⇒ Object (readonly)
Returns the value of attribute vehicle_type
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def vehicle_type @vehicle_type end |
#vin_condition ⇒ Object (readonly)
Returns the value of attribute vin_condition
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def vin_condition @vin_condition end |
#wheel_base ⇒ Object (readonly)
Returns the value of attribute wheel_base
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 9 def wheel_base @wheel_base end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/nfe/generated/nf_produto_v2/vehicle_detail_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( brand_model_code: payload["brandModelCode"], chassis: payload["chassis"], color_code: payload["colorCode"], color_description: payload["colorDescription"], denatran_color_code: payload["denatranColorCode"], engine_displacement: payload["engineDisplacement"], engine_number: payload["engineNumber"], engine_power: payload["enginePower"], fuel_type: payload["fuelType"], gross_weight: payload["grossWeight"], manufacture_year: payload["manufactureYear"], maximum_traction_capacity: payload["maximumTractionCapacity"], model_year: payload["modelYear"], net_weight: payload["netWeight"], operation_type: payload["operationType"], paint_type: payload["paintType"], restriction_type: payload["restrictionType"], seating_capacity: payload["seatingCapacity"], serial_number: payload["serialNumber"], vehicle_condition: payload["vehicleCondition"], vehicle_species: payload["vehicleSpecies"], vehicle_type: payload["vehicleType"], vin_condition: payload["vinCondition"], wheel_base: payload["wheelBase"], ) end |
.new ⇒ instance
33 |
# File 'sig/nfe/generated/nf_produto_v2/vehicle_detail_resource.rbs', line 33
def self.new: (?brand_model_code: String?, ?chassis: String?, ?color_code: String?, ?color_description: String?, ?denatran_color_code: String?, ?engine_displacement: String?, ?engine_number: String?, ?engine_power: String?, ?fuel_type: String?, ?gross_weight: String?, ?manufacture_year: Integer?, ?maximum_traction_capacity: String?, ?model_year: Integer?, ?net_weight: String?, ?operation_type: Integer?, ?paint_type: String?, ?restriction_type: Integer?, ?seating_capacity: Integer?, ?serial_number: String?, ?vehicle_condition: Integer?, ?vehicle_species: Integer?, ?vehicle_type: String?, ?vin_condition: String?, ?wheel_base: String?) -> instance
|