Class: Apipie::MethodDescription::Api

Inherits:
Object
  • Object
show all
Defined in:
lib/apipie/method_description.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, path, desc, options) ⇒ Api

Returns a new instance of Api.



10
11
12
13
14
15
16
# File 'lib/apipie/method_description.rb', line 10

def initialize(method, path, desc, options)
  @http_method = method.to_s
  @path = path
  @short_description = desc
  @from_routes = options[:from_routes]
  @options = options
end

Instance Attribute Details

#from_routesObject

Returns the value of attribute from_routes.



8
9
10
# File 'lib/apipie/method_description.rb', line 8

def from_routes
  @from_routes
end

#http_methodObject

Returns the value of attribute http_method.



8
9
10
# File 'lib/apipie/method_description.rb', line 8

def http_method
  @http_method
end

#optionsObject

Returns the value of attribute options.



8
9
10
# File 'lib/apipie/method_description.rb', line 8

def options
  @options
end

#pathObject

Returns the value of attribute path.



8
9
10
# File 'lib/apipie/method_description.rb', line 8

def path
  @path
end

#short_descriptionObject

Returns the value of attribute short_description.



8
9
10
# File 'lib/apipie/method_description.rb', line 8

def short_description
  @short_description
end