Class: Chaplin::Parser::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/chaplin/parser/config.rb

Constant Summary collapse

DEFAULT_API_URL =
"http://localhost:8080"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#project_pathObject

Returns the value of attribute project_path

Returns:

  • (Object)

    the current value of project_path



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

def project_path
  @project_path
end

Instance Method Details

#api_urlObject



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

def api_url
  config['api_url'] || DEFAULT_API_URL
end

#basic_authObject



18
19
20
# File 'lib/chaplin/parser/config.rb', line 18

def basic_auth
  config['api_basic_auth']
end

#default_headersObject



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

def default_headers
  config['headers']
end