class DaisybillApi::Configuration

Attributes

api_token[RW]

Sets and gets the API Token

DaisybillApi.configuration.api_token                     # => "987654321zyxwvu"
DaisybillApi.configuration.api_token = "123456789abcdef" # => "123456789abcdef"
DaisybillApi.configuration.api_token                     # => "123456789abcdef"

@return [String]

host[RW]

Sets and gets the host

DaisybillApi.configuration.host               # => "go.daisybill.com"
DaisybillApi.configuration.host = "localhost" # => "localhost"
DaisybillApi.configuration.host               # => "localhost"

@return [String]

logger[W]

@private

port[RW]

Sets and gets the port

DaisybillApi.configuration.port        # => 443
DaisybillApi.configuration.port = 3000 # => 3000
DaisybillApi.configuration.port        # => 3000

@return [Integer]

Public Class Methods

new() click to toggle source
# File lib/daisybill_api/configuration.rb, line 36
def initialize
  @port = 443
  @host = "go.daisybill.com"
end

Public Instance Methods

logger() click to toggle source

@private

# File lib/daisybill_api/configuration.rb, line 42
def logger
  @logger ||= Logger.new nil
end