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