Class: Richard::Config
- Inherits:
-
Object
- Object
- Richard::Config
- Defined in:
- lib/richard/config.rb
Constant Summary collapse
- DEFAULT_URL =
"http://richard.nulogy.nu"- CONFIG_FILE =
ENV['HOME'] + "/.richard"
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, api_key) ⇒ Config
constructor
A new instance of Config.
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_key ⇒ Object (readonly)
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/richard/config.rb', line 3 def api_key @api_key end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/richard/config.rb', line 3 def url @url end |