module OBarc
Constants
- VERSION
Public Instance Methods
login!(options)
click to toggle source
# File lib/obarc.rb, line 10 def login!(options) options[:base_url] ||= "#{options[:protocol]}://#{options[:server_host]}:#{options[:server_port]}/api/#{options[:api_version]}" Session.new(username: options[:username], password: options[:password], cookies: Api.post_login(options).cookies) end