Class: Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Domain_Entities_Address
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Domain_Entities_Address
- Defined in:
- lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rb,
sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rbs
Instance Attribute Summary collapse
-
#additional_information ⇒ Object
readonly
Returns the value of attribute additional_information.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#district ⇒ Object
readonly
Returns the value of attribute district.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#street ⇒ Object
readonly
Returns the value of attribute street.
-
#street_prefix ⇒ Object
readonly
Returns the value of attribute street_prefix.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ DFeTech_TaxPayers_Domain_Entities_Address
constructor
A new instance of DFeTech_TaxPayers_Domain_Entities_Address.
Constructor Details
#initialize ⇒ DFeTech_TaxPayers_Domain_Entities_Address
Returns a new instance of DFeTech_TaxPayers_Domain_Entities_Address.
19 |
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rbs', line 19
def initialize: (?additional_information: String?, ?city: DFeTech_TaxPayers_Domain_Entities_CityBase, ?country: String?, ?district: String?, ?number: String?, ?postal_code: String?, ?state: String?, ?street: String?, ?street_prefix: String?) -> void
|
Instance Attribute Details
#additional_information ⇒ Object (readonly)
Returns the value of attribute additional_information
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rb', line 9 def additional_information @additional_information end |
#city ⇒ Object (readonly)
Returns the value of attribute city
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rb', line 9 def city @city 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_address.rb', line 9 def country @country end |
#district ⇒ Object (readonly)
Returns the value of attribute district
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rb', line 9 def district @district end |
#number ⇒ Object (readonly)
Returns the value of attribute number
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rb', line 9 def number @number end |
#postal_code ⇒ Object (readonly)
Returns the value of attribute postal_code
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rb', line 9 def postal_code @postal_code 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_address.rb', line 9 def state @state end |
#street ⇒ Object (readonly)
Returns the value of attribute street
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rb', line 9 def street @street end |
#street_prefix ⇒ Object (readonly)
Returns the value of attribute street_prefix
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rb', line 9 def street_prefix @street_prefix end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( additional_information: payload["additionalInformation"], city: DFeTech_TaxPayers_Domain_Entities_CityBase.from_api(payload["city"]), country: payload["country"], district: payload["district"], number: payload["number"], postal_code: payload["postalCode"], state: payload["state"], street: payload["street"], street_prefix: payload["streetPrefix"], ) end |
.new ⇒ instance
18 |
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_domain_entities_address.rbs', line 18
def self.new: (?additional_information: String?, ?city: DFeTech_TaxPayers_Domain_Entities_CityBase, ?country: String?, ?district: String?, ?number: String?, ?postal_code: String?, ?state: String?, ?street: String?, ?street_prefix: String?) -> instance
|