class Mole::Config

Constants

DEFAULT_API_VERSION
DEFAULT_HOST
DEFAULT_POST

Attributes

api_token[RW]
api_version[W]
host[W]
method[W]
port[W]

Public Instance Methods

api_version() click to toggle source
# File lib/orwell/mole/config.rb, line 17
def api_version
  @api_version ||= DEFAULT_API_VERSION
end
host() click to toggle source
# File lib/orwell/mole/config.rb, line 21
def host
  @host ||= DEFAULT_HOST
end
method() click to toggle source
# File lib/orwell/mole/config.rb, line 25
def method
  @method ||= :basic_http
end
port() click to toggle source
# File lib/orwell/mole/config.rb, line 29
def port
  @port ||= DEFAULT_POST
end
reset!() click to toggle source
# File lib/orwell/mole/config.rb, line 33
def reset!
  @api_token, @api_version, @host, @method, @port = nil
end