Class: Yapt::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_path) ⇒ Config

Returns a new instance of Config.



6
7
8
# File 'lib/yapt/config.rb', line 6

def initialize(project_path)
  @project_path = project_path
end

Instance Attribute Details

#project_pathObject (readonly)

Returns the value of attribute project_path.



5
6
7
# File 'lib/yapt/config.rb', line 5

def project_path
  @project_path
end

Instance Method Details

#api_tokenObject



14
15
16
# File 'lib/yapt/config.rb', line 14

def api_token
  config.fetch('api_token')
end

#project_idObject



10
11
12
# File 'lib/yapt/config.rb', line 10

def project_id
  config.fetch('project_id')
end