Class: Jsapi::Configuration
- Inherits:
-
Object
- Object
- Jsapi::Configuration
- Defined in:
- lib/jsapi/configuration.rb
Overview
Holds the Jsapi configuration.
Instance Attribute Summary collapse
-
#api_defs_path ⇒ Object
The path where the API definitions are located relative to
Rails.root
.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
:nodoc:.
-
#pathname(*args) ⇒ Object
Returns the absolute
Pathname
forargs
withinapi_defs_path
.
Constructor Details
#initialize ⇒ Configuration
:nodoc:
10 11 12 |
# File 'lib/jsapi/configuration.rb', line 10 def initialize # :nodoc: @api_defs_path = 'app/api_defs' end |
Instance Attribute Details
#api_defs_path ⇒ Object
The path where the API definitions are located relative to Rails.root
. The default is "app/api_defs"
.
8 9 10 |
# File 'lib/jsapi/configuration.rb', line 8 def api_defs_path @api_defs_path end |