Class: OasParser::Callback
- Includes:
- RawAccessor
- Defined in:
- lib/oas_parser_reborn/callback.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#name ⇒ Object
Returns the value of attribute name.
-
#raw ⇒ Object
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(endpoint, name, raw) ⇒ Callback
constructor
A new instance of Callback.
- #paths ⇒ Object
Methods included from RawAccessor
included, #method_missing, #respond_to_missing?
Methods inherited from Payload
#exhibits_one_of_multiple_schemas?, #formats, #schema, #split_schemas
Constructor Details
#initialize(endpoint, name, raw) ⇒ Callback
Returns a new instance of Callback.
8 9 10 11 12 |
# File 'lib/oas_parser_reborn/callback.rb', line 8 def initialize(endpoint, name, raw) @endpoint = endpoint @name = name @raw = raw end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OasParser::RawAccessor
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
6 7 8 |
# File 'lib/oas_parser_reborn/callback.rb', line 6 def endpoint @endpoint end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/oas_parser_reborn/callback.rb', line 6 def name @name end |
#raw ⇒ Object
Returns the value of attribute raw.
6 7 8 |
# File 'lib/oas_parser_reborn/callback.rb', line 6 def raw @raw end |