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