class Diesel::Swagger::Path

Constants

REQUEST_METHODS

Attributes

id[R]
path_name[R]

Public Class Methods

new(id) click to toggle source
Calls superclass method Diesel::Swagger::Node::new
# File lib/diesel/swagger/path.rb, line 18
def initialize(id)
  super()
  @id = id
end

Public Instance Methods

operations() click to toggle source
# File lib/diesel/swagger/path.rb, line 23
def operations
  REQUEST_METHODS.map { |m| __send__(m) }.compact
end
operations_map() click to toggle source
# File lib/diesel/swagger/path.rb, line 27
def operations_map
  REQUEST_METHODS.reduce({}) do |m, method|
    if op = __send__(method)
      m[method] = op
    end
    m
  end
end