Class: Nfe::Generated::ProductInvoiceRtcV1::PumpResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::PumpResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/pump_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/pump_resource.rbs
Instance Attribute Summary collapse
-
#beginning_amount ⇒ Object
readonly
Returns the value of attribute beginning_amount.
-
#end_amount ⇒ Object
readonly
Returns the value of attribute end_amount.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#percentage_bio ⇒ Object
readonly
Returns the value of attribute percentage_bio.
-
#spout_number ⇒ Object
readonly
Returns the value of attribute spout_number.
-
#tank_number ⇒ Object
readonly
Returns the value of attribute tank_number.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ PumpResource
constructor
A new instance of PumpResource.
Constructor Details
#initialize ⇒ PumpResource
Returns a new instance of PumpResource.
16 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/pump_resource.rbs', line 16
def initialize: (?beginning_amount: Float?, ?end_amount: Float?, ?number: Integer?, ?percentage_bio: Float?, ?spout_number: Integer?, ?tank_number: Integer?) -> void
|
Instance Attribute Details
#beginning_amount ⇒ Object (readonly)
Returns the value of attribute beginning_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/pump_resource.rb', line 9 def beginning_amount @beginning_amount end |
#end_amount ⇒ Object (readonly)
Returns the value of attribute end_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/pump_resource.rb', line 9 def end_amount @end_amount end |
#number ⇒ Object (readonly)
Returns the value of attribute number
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/pump_resource.rb', line 9 def number @number end |
#percentage_bio ⇒ Object (readonly)
Returns the value of attribute percentage_bio
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/pump_resource.rb', line 9 def percentage_bio @percentage_bio end |
#spout_number ⇒ Object (readonly)
Returns the value of attribute spout_number
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/pump_resource.rb', line 9 def spout_number @spout_number end |
#tank_number ⇒ Object (readonly)
Returns the value of attribute tank_number
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/pump_resource.rb', line 9 def tank_number @tank_number end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/pump_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( beginning_amount: payload["beginningAmount"], end_amount: payload["endAmount"], number: payload["number"], percentage_bio: payload["percentageBio"], spout_number: payload["spoutNumber"], tank_number: payload["tankNumber"], ) end |
.new ⇒ instance
15 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/pump_resource.rbs', line 15
def self.new: (?beginning_amount: Float?, ?end_amount: Float?, ?number: Integer?, ?percentage_bio: Float?, ?spout_number: Integer?, ?tank_number: Integer?) -> instance
|