Class: FastpixClient::Models::Components::ErrorDetails
- Inherits:
-
Object
- Object
- FastpixClient::Models::Components::ErrorDetails
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/components/errordetails.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(percentage: nil, notes: nil, message: nil, last_seen: nil, id: nil, description: nil, count: nil, code: nil) ⇒ ErrorDetails
constructor
A new instance of ErrorDetails.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(percentage: nil, notes: nil, message: nil, last_seen: nil, id: nil, description: nil, count: nil, code: nil) ⇒ ErrorDetails
Returns a new instance of ErrorDetails.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/fastpix_client/models/components/errordetails.rb', line 33 def initialize(percentage: nil, notes: nil, message: nil, last_seen: nil, id: nil, description: nil, count: nil, code: nil) @percentage = percentage @notes = notes = @last_seen = last_seen @id = id @description = description @count = count @code = code end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/fastpix_client/models/components/errordetails.rb', line 45 def ==(other) return false unless other.is_a? self.class return false unless @percentage == other.percentage return false unless @notes == other.notes return false unless == other. return false unless @last_seen == other.last_seen return false unless @id == other.id return false unless @description == other.description return false unless @count == other.count return false unless @code == other.code true end |