class ApiCanon::Swagger::Base

Public Instance Methods

api_version() click to toggle source
# File lib/api_canon/swagger/base.rb, line 11
def api_version
  object.respond_to?(:version) ? object.version : object.collect { |key, val| val.version }.uniq.to_sentence
end
base_path() click to toggle source
# File lib/api_canon/swagger/base.rb, line 19
def base_path
  defined?(api_canon_base_url) ? api_canon_base_url : api_canon_test_url.sub(api_canon_test_path,'/')
end
swagger_version() click to toggle source
# File lib/api_canon/swagger/base.rb, line 15
def swagger_version
  1.1
end