Class: Nfe::Generated::ConsultaCteV2::DFe_NetCore_Domain_Resources_CompanyResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ConsultaCteV2::DFe_NetCore_Domain_Resources_CompanyResource
- Defined in:
- lib/nfe/generated/consulta_cte_v2/dfe_net_core_domain_resources_company_resource.rb,
sig/nfe/generated/consulta_cte_v2/dfe_net_core_domain_resources_company_resource.rbs
Instance Attribute Summary collapse
-
#federal_tax_number ⇒ Object
readonly
Returns the value of attribute federal_tax_number.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#state_tax_number ⇒ Object
readonly
Returns the value of attribute state_tax_number.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ DFe_NetCore_Domain_Resources_CompanyResource
constructor
A new instance of DFe_NetCore_Domain_Resources_CompanyResource.
Constructor Details
#initialize ⇒ DFe_NetCore_Domain_Resources_CompanyResource
Returns a new instance of DFe_NetCore_Domain_Resources_CompanyResource.
14 |
# File 'sig/nfe/generated/consulta_cte_v2/dfe_net_core_domain_resources_company_resource.rbs', line 14
def initialize: (?federal_tax_number: String?, ?id: String?, ?state: String?, ?state_tax_number: String?) -> void
|
Instance Attribute Details
#federal_tax_number ⇒ Object (readonly)
Returns the value of attribute federal_tax_number
9 10 11 |
# File 'lib/nfe/generated/consulta_cte_v2/dfe_net_core_domain_resources_company_resource.rb', line 9 def federal_tax_number @federal_tax_number end |
#id ⇒ Object (readonly)
Returns the value of attribute id
9 10 11 |
# File 'lib/nfe/generated/consulta_cte_v2/dfe_net_core_domain_resources_company_resource.rb', line 9 def id @id end |
#state ⇒ Object (readonly)
Returns the value of attribute state
9 10 11 |
# File 'lib/nfe/generated/consulta_cte_v2/dfe_net_core_domain_resources_company_resource.rb', line 9 def state @state end |
#state_tax_number ⇒ Object (readonly)
Returns the value of attribute state_tax_number
9 10 11 |
# File 'lib/nfe/generated/consulta_cte_v2/dfe_net_core_domain_resources_company_resource.rb', line 9 def state_tax_number @state_tax_number end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/nfe/generated/consulta_cte_v2/dfe_net_core_domain_resources_company_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( federal_tax_number: payload["federalTaxNumber"], id: payload["id"], state: payload["state"], state_tax_number: payload["stateTaxNumber"], ) end |
.new ⇒ instance
13 |
# File 'sig/nfe/generated/consulta_cte_v2/dfe_net_core_domain_resources_company_resource.rbs', line 13
def self.new: (?federal_tax_number: String?, ?id: String?, ?state: String?, ?state_tax_number: String?) -> instance
|