Module: SimpleHelper::Config

Defined in:
lib/simple_helper/config.rb

Class Method Summary collapse

Class Method Details

.referenceObject



21
22
23
# File 'lib/simple_helper/config.rb', line 21

def reference
  %w[scheme host port request_uri path query]
end

.supported_formatObject



25
26
27
# File 'lib/simple_helper/config.rb', line 25

def supported_format
  %w[json plain]
end

.supported_methodsObject



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_schemesObject



17
18
19
# File 'lib/simple_helper/config.rb', line 17

def supported_schemes
  %w[http https]
end