Class: RiderKick::Entities::FailureDetails

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/rider_kick/entities/failure_details.rb

Class Method Summary collapse

Class Method Details

.from_array(array) ⇒ Object



21
22
23
# File 'lib/rider_kick/entities/failure_details.rb', line 21

def self.from_array(array)
  new(message: 'failure 1, failure 2', other_properties: {}, type: 'error')
end

.from_string(string) ⇒ Object



25
26
27
# File 'lib/rider_kick/entities/failure_details.rb', line 25

def self.from_string(string)
  new(message: string, other_properties: {}, type: 'error')
end