Class: DryOpenApi::Callback

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/dry_open_api/callback.rb

Overview

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**hash) ⇒ Callback

Returns a new instance of Callback.



7
8
9
# File 'lib/dry_open_api/callback.rb', line 7

def initialize(**hash)
  self.hash = hash.with_indifferent_access
end

Class Method Details

.load(hash) ⇒ Object



13
14
15
16
17
# File 'lib/dry_open_api/callback.rb', line 13

def self.load(hash)
  return unless hash

  new(**hash.symbolize_keys)
end