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