class Swagger::Configuration
Attributes
api_key[RW]
auth_token[RW]
base_path[RW]
camelize_params[RW]
force_ending_format[RW]
format[RW]
host[RW]
inject_format[RW]
logger[RW]
password[RW]
scheme[RW]
user_agent[RW]
username[RW]
Public Class Methods
new()
click to toggle source
Defaults go in here..
# File lib/swagger/configuration.rb, line 8 def initialize @format = 'json' @scheme = 'https' @host = 'api.taxamo.com' @base_path = '' @user_agent = "ruby-swagger" @inject_format = true @force_ending_format = false @camelize_params = false end
Public Instance Methods
update(params)
click to toggle source
# File lib/swagger/configuration.rb, line 19 def update(params) if params[:format] @format = params[:format] end if params[:scheme] @scheme = params[:scheme] end if params[:host] @host = params[:host] end if params[:base_path] @base_path = params[:base_path] end if params[:user_agent] @user_agent = params[:user_agent] end if params[:inject_format] @inject_format = params[:inject_format] end if params[:force_ending_format] @force_ending_format = params[:force_ending_format] end if params[:camelize_params] @camelize_params = params[:camelize_params] end if params[:api_key] @api_key = params[:api_key] end if params[:username] @username = params[:username] end if params[:password] @password = params[:password] end if params[:auth_token] @auth_token = params[:auth_token] end if params[:logger] @logger = params[:logger] end end