Class: Workarea::Api::DocumentationTest::Example
- Inherits:
-
Object
- Object
- Workarea::Api::DocumentationTest::Example
- Defined in:
- lib/workarea/api/documentation_test.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#explanation ⇒ Object
Returns the value of attribute explanation.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#requests ⇒ Object
Returns the value of attribute requests.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#response_fields ⇒ Object
Returns the value of attribute response_fields.
-
#route ⇒ Object
Returns the value of attribute route.
Instance Method Summary collapse
- #file_name ⇒ Object
-
#initialize ⇒ Example
constructor
A new instance of Example.
Constructor Details
#initialize ⇒ Example
Returns a new instance of Example.
19 20 21 22 23 |
# File 'lib/workarea/api/documentation_test.rb', line 19 def initialize @parameters = [] @response_fields = [] @requests = [] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
16 17 18 |
# File 'lib/workarea/api/documentation_test.rb', line 16 def description @description end |
#explanation ⇒ Object
Returns the value of attribute explanation.
16 17 18 |
# File 'lib/workarea/api/documentation_test.rb', line 16 def explanation @explanation end |
#http_method ⇒ Object
Returns the value of attribute http_method.
16 17 18 |
# File 'lib/workarea/api/documentation_test.rb', line 16 def http_method @http_method end |
#parameters ⇒ Object
Returns the value of attribute parameters.
16 17 18 |
# File 'lib/workarea/api/documentation_test.rb', line 16 def parameters @parameters end |
#requests ⇒ Object
Returns the value of attribute requests.
16 17 18 |
# File 'lib/workarea/api/documentation_test.rb', line 16 def requests @requests end |
#resource ⇒ Object
Returns the value of attribute resource.
16 17 18 |
# File 'lib/workarea/api/documentation_test.rb', line 16 def resource @resource end |
#response_fields ⇒ Object
Returns the value of attribute response_fields.
16 17 18 |
# File 'lib/workarea/api/documentation_test.rb', line 16 def response_fields @response_fields end |
#route ⇒ Object
Returns the value of attribute route.
16 17 18 |
# File 'lib/workarea/api/documentation_test.rb', line 16 def route @route end |
Instance Method Details
#file_name ⇒ Object
31 32 33 34 |
# File 'lib/workarea/api/documentation_test.rb', line 31 def file_name name = @description.presence || "#{@http_method} #{@route}" "#{name.systemize}.json" end |