Class: Richard::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/richard/config.rb

Constant Summary collapse

DEFAULT_URL =
"http://richard.nulogy.nu"
CONFIG_FILE =
ENV['HOME'] + "/.richard"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, api_key) ⇒ Config

Returns a new instance of Config.



8
9
10
11
# File 'lib/richard/config.rb', line 8

def initialize(url, api_key)
  @url = url
  @api_key = api_key
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



3
4
5
# File 'lib/richard/config.rb', line 3

def api_key
  @api_key
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/richard/config.rb', line 3

def url
  @url
end