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