Class: Nfe::Generated::ServiceInvoiceRtcV1::Construction
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ServiceInvoiceRtcV1::Construction
- Defined in:
- lib/nfe/generated/service_invoice_rtc_v1/construction.rb,
sig/nfe/generated/service_invoice_rtc_v1/construction.rbs
Instance Attribute Summary collapse
-
#cib_code ⇒ Object
readonly
Returns the value of attribute cib_code.
-
#encapsulation_number ⇒ Object
readonly
Returns the value of attribute encapsulation_number.
-
#property_fiscal_registration ⇒ Object
readonly
Returns the value of attribute property_fiscal_registration.
-
#site_address ⇒ Object
readonly
Returns the value of attribute site_address.
-
#work_id ⇒ Object
readonly
Returns the value of attribute work_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Construction
constructor
A new instance of Construction.
Constructor Details
#initialize ⇒ Construction
Returns a new instance of Construction.
15 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/construction.rbs', line 15
def initialize: (?cib_code: String, ?encapsulation_number: String, ?property_fiscal_registration: String, ?site_address: AddressDefinition, ?work_id: Hash[String, untyped]) -> void
|
Instance Attribute Details
#cib_code ⇒ Object (readonly)
Returns the value of attribute cib_code
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/construction.rb', line 9 def cib_code @cib_code end |
#encapsulation_number ⇒ Object (readonly)
Returns the value of attribute encapsulation_number
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/construction.rb', line 9 def encapsulation_number @encapsulation_number end |
#property_fiscal_registration ⇒ Object (readonly)
Returns the value of attribute property_fiscal_registration
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/construction.rb', line 9 def property_fiscal_registration @property_fiscal_registration end |
#site_address ⇒ Object (readonly)
Returns the value of attribute site_address
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/construction.rb', line 9 def site_address @site_address end |
#work_id ⇒ Object (readonly)
Returns the value of attribute work_id
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/construction.rb', line 9 def work_id @work_id end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/construction.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( cib_code: payload["cibCode"], encapsulation_number: payload["encapsulationNumber"], property_fiscal_registration: payload["propertyFiscalRegistration"], site_address: AddressDefinition.from_api(payload["siteAddress"]), work_id: payload["workId"], ) end |
.new ⇒ instance
14 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/construction.rbs', line 14
def self.new: (?cib_code: String, ?encapsulation_number: String, ?property_fiscal_registration: String, ?site_address: AddressDefinition, ?work_id: Hash[String, untyped]) -> instance
|