Class: StashAPI::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/stash_api/base.rb

Class Method Summary collapse

Class Method Details

.basic_auth(u, v) ⇒ Object



11
12
13
# File 'lib/stash_api/base.rb', line 11

def basic_auth(u, v)
  HTTP::Client.basic_auth u, v
end

.domain(value = nil) ⇒ Object



5
6
7
8
9
# File 'lib/stash_api/base.rb', line 5

def domain(value = nil)
  return Options.option(:domain) unless value
  value.chomp! '/' if value[-1]
  Options.option :domain, value
end