Class: Requester::Config
- Inherits:
-
Object
- Object
- Requester::Config
- Defined in:
- lib/requester/config.rb
Defined Under Namespace
Classes: RequesterConfigError
Class Attribute Summary collapse
-
.additional_request_attributes ⇒ Object
Returns the value of attribute additional_request_attributes.
-
.additional_response_attributes ⇒ Object
Returns the value of attribute additional_response_attributes.
-
.file_name ⇒ Object
Returns the value of attribute file_name.
-
.front_end_path ⇒ Object
Returns the value of attribute front_end_path.
Class Method Summary collapse
Class Attribute Details
.additional_request_attributes ⇒ Object
Returns the value of attribute additional_request_attributes.
7 8 9 |
# File 'lib/requester/config.rb', line 7 def additional_request_attributes @additional_request_attributes end |
.additional_response_attributes ⇒ Object
Returns the value of attribute additional_response_attributes.
7 8 9 |
# File 'lib/requester/config.rb', line 7 def additional_response_attributes @additional_response_attributes end |
.file_name ⇒ Object
Returns the value of attribute file_name.
6 7 8 |
# File 'lib/requester/config.rb', line 6 def file_name @file_name end |
.front_end_path ⇒ Object
Returns the value of attribute front_end_path.
7 8 9 |
# File 'lib/requester/config.rb', line 7 def front_end_path @front_end_path end |
Class Method Details
.back_end_path ⇒ Object
33 34 35 36 |
# File 'lib/requester/config.rb', line 33 def back_end_path dir = defined?(RSpec) ? 'spec' : 'test' File.join(Rails.root, dir) end |
.export_type ⇒ Object
38 39 40 |
# File 'lib/requester/config.rb', line 38 def export_type :es6 end |
.initialize(&block) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/requester/config.rb', line 9 def initialize(&block) @file_name = 'responses.js' @additional_request_attributes = [] @additional_response_attributes = [] class_exec(self, &block) end |