Module: SimpleHelper::Config
- Defined in:
- lib/simple_helper/config.rb
Class Method Summary collapse
- .reference ⇒ Object
- .supported_format ⇒ Object
- .supported_methods ⇒ Object
- .supported_schemes ⇒ Object
Class Method Details
.reference ⇒ Object
21 22 23 |
# File 'lib/simple_helper/config.rb', line 21 def reference %w[scheme host port request_uri path query] end |
.supported_format ⇒ Object
25 26 27 |
# File 'lib/simple_helper/config.rb', line 25 def supported_format %w[json plain] end |
.supported_methods ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/simple_helper/config.rb', line 7 def supported_methods { 'get' => Net::HTTP::Get, 'post' => Net::HTTP::Post, 'patch' => Net::HTTP::Patch, 'put' => Net::HTTP::Put, 'delete' => Net::HTTP::Delete } end |
.supported_schemes ⇒ Object
17 18 19 |
# File 'lib/simple_helper/config.rb', line 17 def supported_schemes %w[http https] end |