Class: Urbit::Api::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/urbit/api.rb

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_codeObject



13
14
15
# File 'lib/urbit/api.rb', line 13

def ship_code
  @ship_code
end

#ship_nameObject



17
18
19
# File 'lib/urbit/api.rb', line 17

def ship_name
  @ship_name
end