Class: OpenApi::Callback
- Inherits:
-
Object
- Object
- OpenApi::Callback
- Extended by:
- Forwardable
- Defined in:
- lib/open_api/callback.rb
Overview
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Callback
constructor
A new instance of Callback.
Constructor Details
#initialize(hash = {}) ⇒ Callback
Returns a new instance of Callback.
6 7 8 |
# File 'lib/open_api/callback.rb', line 6 def initialize(hash = {}) self.hash = hash.with_indifferent_access end |
Class Method Details
.load(hash) ⇒ Object
12 13 14 15 16 |
# File 'lib/open_api/callback.rb', line 12 def self.load(hash) return unless hash new(hash.symbolize_keys) end |