Class: Urbit::Api::Config
- Inherits:
-
Object
- Object
- Urbit::Api::Config
- Defined in:
- lib/urbit/api.rb
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #ship_code ⇒ Object
- #ship_name ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 9 10 11 |
# File 'lib/urbit/api.rb', line 6 def initialize require 'yaml' config_file = YAML.load_file('_config.yml.example') @ship_code = config_file['code'] @ship_name = config_file['ship'] end |
Instance Method Details
#ship_code ⇒ Object
13 14 15 |
# File 'lib/urbit/api.rb', line 13 def ship_code @ship_code end |
#ship_name ⇒ Object
17 18 19 |
# File 'lib/urbit/api.rb', line 17 def ship_name @ship_name end |