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