class Nokotime::Configuration

Constants

DEFAULT_URL

Attributes

auth_type[W]
max_concurrency[W]
token[W]
url[RW]

Public Class Methods

new() click to toggle source
# File lib/nokotime/configuration.rb, line 12
def initialize
  @auth_type = nil
  @max_concurrency = nil
  @token = nil
  @url = DEFAULT_URL
end

Public Instance Methods

auth_type() click to toggle source
# File lib/nokotime/configuration.rb, line 19
def auth_type
  unless valid_auth?(@auth_type)
    raise(
      Errors::Configuration,
      "#{@auth_type} isn't valid type authentication."
    )
  end

  @auth_type || raise(
    Errors::Configuration, "Authentication type missing."
  )
end
max_concurrency() click to toggle source
# File lib/nokotime/configuration.rb, line 32
def max_concurrency
  @max_concurrency || raise(
    Errors::Configuration, "Max concurrency missing."
  )
end
token() click to toggle source
# File lib/nokotime/configuration.rb, line 38
def token
  @token || raise(
    Errors::Configuration, "Token missing."
  )
end