Class: Chaplin::Parser::Config
- Inherits:
-
Struct
- Object
- Struct
- Chaplin::Parser::Config
- Defined in:
- lib/chaplin/parser/config.rb
Constant Summary collapse
- DEFAULT_API_URL =
"http://localhost:8080"
Instance Attribute Summary collapse
-
#project_path ⇒ Object
Returns the value of attribute project_path.
Instance Method Summary collapse
Instance Attribute Details
#project_path ⇒ Object
Returns the value of attribute project_path
6 7 8 |
# File 'lib/chaplin/parser/config.rb', line 6 def project_path @project_path end |
Instance Method Details
#api_url ⇒ Object
10 11 12 |
# File 'lib/chaplin/parser/config.rb', line 10 def api_url config['api_url'] || DEFAULT_API_URL end |
#basic_auth ⇒ Object
18 19 20 |
# File 'lib/chaplin/parser/config.rb', line 18 def basic_auth config['api_basic_auth'] end |
#default_headers ⇒ Object
14 15 16 |
# File 'lib/chaplin/parser/config.rb', line 14 def default_headers config['headers'] end |