Class: TsJsonApi::Configure
- Inherits:
-
Object
- Object
- TsJsonApi::Configure
- Defined in:
- lib/ts_json_api/configure.rb
Constant Summary collapse
- LOG_FILE_DIRECTORY =
Rails.root.join('log', 'ts_json_api')
Class Attribute Summary collapse
-
.api_version ⇒ Object
Returns the value of attribute api_version.
-
.logging_enabled ⇒ Object
(also: logging_enabled?)
Returns the value of attribute logging_enabled.
- .password ⇒ Object
- .server_url ⇒ Object
-
.timestamped_logs ⇒ Object
(also: timestamped_logs?)
Returns the value of attribute timestamped_logs.
- .username ⇒ Object
Class Method Summary collapse
Class Attribute Details
.api_version ⇒ Object
Returns the value of attribute api_version.
8 9 10 |
# File 'lib/ts_json_api/configure.rb', line 8 def api_version @api_version end |
.logging_enabled ⇒ Object Also known as: logging_enabled?
Returns the value of attribute logging_enabled.
8 9 10 |
# File 'lib/ts_json_api/configure.rb', line 8 def logging_enabled @logging_enabled end |
.password ⇒ Object
19 20 21 22 |
# File 'lib/ts_json_api/configure.rb', line 19 def password raise "Must provide a password" if @password.blank? @password end |
.server_url ⇒ Object
24 25 26 27 |
# File 'lib/ts_json_api/configure.rb', line 24 def server_url raise "Must provide a server URL for the API" if @server_url.blank? @server_url end |
.timestamped_logs ⇒ Object Also known as: timestamped_logs?
Returns the value of attribute timestamped_logs.
8 9 10 |
# File 'lib/ts_json_api/configure.rb', line 8 def @timestamped_logs end |
.username ⇒ Object
14 15 16 17 |
# File 'lib/ts_json_api/configure.rb', line 14 def username raise "Must provide an username" if @username.blank? @username end |
Class Method Details
.setup(&block) ⇒ Object
29 30 31 |
# File 'lib/ts_json_api/configure.rb', line 29 def setup(&block) block.call(self) end |