Class: Nfe::Generated::ProductInvoiceRtcV1::DisablementResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::DisablementResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/disablement_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/disablement_resource.rbs
Instance Attribute Summary collapse
-
#begin_number ⇒ Object
readonly
Returns the value of attribute begin_number.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#last_number ⇒ Object
readonly
Returns the value of attribute last_number.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#serie ⇒ Object
readonly
Returns the value of attribute serie.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ DisablementResource
constructor
A new instance of DisablementResource.
Constructor Details
#initialize ⇒ DisablementResource
Returns a new instance of DisablementResource.
16 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/disablement_resource.rbs', line 16
def initialize: (?begin_number: Integer, ?environment: untyped, ?last_number: Integer, ?reason: String?, ?serie: Integer, ?state: untyped) -> void
|
Instance Attribute Details
#begin_number ⇒ Object (readonly)
Returns the value of attribute begin_number
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/disablement_resource.rb', line 9 def begin_number @begin_number end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/disablement_resource.rb', line 9 def environment @environment end |
#last_number ⇒ Object (readonly)
Returns the value of attribute last_number
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/disablement_resource.rb', line 9 def last_number @last_number end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/disablement_resource.rb', line 9 def reason @reason end |
#serie ⇒ Object (readonly)
Returns the value of attribute serie
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/disablement_resource.rb', line 9 def serie @serie end |
#state ⇒ Object (readonly)
Returns the value of attribute state
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/disablement_resource.rb', line 9 def state @state 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/disablement_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( begin_number: payload["beginNumber"], environment: payload["environment"], last_number: payload["lastNumber"], reason: payload["reason"], serie: payload["serie"], state: payload["state"], ) end |
.new ⇒ instance
15 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/disablement_resource.rbs', line 15
def self.new: (?begin_number: Integer, ?environment: untyped, ?last_number: Integer, ?reason: String?, ?serie: Integer, ?state: untyped) -> instance
|