Class: Prmd::Link
- Inherits:
-
Object
- Object
- Prmd::Link
- Defined in:
- lib/prmd/link.rb
Defined Under Namespace
Classes: Schema
Instance Method Summary collapse
-
#initialize(link_schema) ⇒ Link
constructor
A new instance of Link.
- #required_and_optional_parameters ⇒ Object
Constructor Details
#initialize(link_schema) ⇒ Link
5 6 7 |
# File 'lib/prmd/link.rb', line 5 def initialize(link_schema) @link_schema = link_schema end |
Instance Method Details
#required_and_optional_parameters ⇒ Object
9 10 11 12 13 |
# File 'lib/prmd/link.rb', line 9 def required_and_optional_parameters @params = {required: {}, optional: {} } recurse_properties(Schema.new(@link_schema["schema"]), "") [@params[:required], @params[:optional]] end |