Class: Swagger::Grape::Method
- Inherits:
-
Object
- Object
- Swagger::Grape::Method
- Defined in:
- lib/ruby-swagger/grape/method.rb
Instance Attribute Summary collapse
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
-
#types ⇒ Object
readonly
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize(route_name, route) ⇒ Method
constructor
A new instance of Method.
Constructor Details
#initialize(route_name, route) ⇒ Method
Returns a new instance of Method.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/ruby-swagger/grape/method.rb', line 8 def initialize(route_name, route) @route_name = route_name @route = route @types = [] @scopes = [] new_operation operation_params operation_responses operation_security self end |
Instance Attribute Details
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
6 7 8 |
# File 'lib/ruby-swagger/grape/method.rb', line 6 def operation @operation end |
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
6 7 8 |
# File 'lib/ruby-swagger/grape/method.rb', line 6 def scopes @scopes end |
#types ⇒ Object (readonly)
Returns the value of attribute types.
6 7 8 |
# File 'lib/ruby-swagger/grape/method.rb', line 6 def types @types end |