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