class Skylight::Core::Normalizers::Grape::Endpoint
Private Instance Methods
get_method(endpoint)
click to toggle source
# File lib/skylight/core/normalizers/grape/endpoint.rb, line 17 def get_method(endpoint) method = endpoint.options[:method].first method = "#{method}..." if endpoint.options[:method].length > 1 method end
get_namespace(endpoint)
click to toggle source
# File lib/skylight/core/normalizers/grape/endpoint.rb, line 27 def get_namespace(endpoint) # slice off preceding slash for data continuity ::Grape::Namespace.joined_space_path(endpoint.namespace_stackable(:namespace)).to_s[1..-1] end
get_path(endpoint)
click to toggle source
# File lib/skylight/core/normalizers/grape/endpoint.rb, line 23 def get_path(endpoint) endpoint.options[:path].join("/") end