Class: ApipieDSL::SeeDescription
- Inherits:
-
Object
- Object
- ApipieDSL::SeeDescription
- Defined in:
- lib/apipie_dsl/see_description.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
Instance Method Summary collapse
- #docs ⇒ Object
-
#initialize(method, options = {}) ⇒ SeeDescription
constructor
A new instance of SeeDescription.
Constructor Details
#initialize(method, options = {}) ⇒ SeeDescription
Returns a new instance of SeeDescription.
7 8 9 10 11 12 |
# File 'lib/apipie_dsl/see_description.rb', line 7 def initialize(method, = {}) @method = method @link = [:link] @description = [:desc] || [:description] @scope = [:scope] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/apipie_dsl/see_description.rb', line 5 def description @description end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
5 6 7 |
# File 'lib/apipie_dsl/see_description.rb', line 5 def link @link end |
Instance Method Details
#docs ⇒ Object
14 15 16 |
# File 'lib/apipie_dsl/see_description.rb', line 14 def docs { link: link, url: see_url, description: description } end |