Module: EPlat::Concerns::OverwriteRequestMethods
- Included in:
- Base
- Defined in:
- lib/e_plat/resource/concerns/overwrite_request_methods.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/e_plat/resource/concerns/overwrite_request_methods.rb', line 5 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#collection_path(options = {}) ⇒ Object
125 126 127 128 129 |
# File 'lib/e_plat/resource/concerns/overwrite_request_methods.rb', line 125 def collection_path( = {}) = .merge client.try("#{element_name}_default_request_args") || {} super() end |
#element_path(options = {}) ⇒ Object
131 132 133 134 135 |
# File 'lib/e_plat/resource/concerns/overwrite_request_methods.rb', line 131 def element_path( = {}) = .merge client.try("#{element_name}_default_request_args") || {} super() end |