Class: Faraday::Utils::ParamsHash

Inherits:
Object
  • Object
show all
Defined in:
lib/github_api/ext/faraday.rb

Instance Method Summary collapse

Instance Method Details

#params_encoder(encoder = nil) ⇒ Object


7
8
9
10
11
12
13
# File 'lib/github_api/ext/faraday.rb', line 7

def params_encoder(encoder = nil)
  if encoder
    @encoder = encoder
  else
    @encoder
  end
end

#to_query(encoder = nil) ⇒ Object


15
16
17
# File 'lib/github_api/ext/faraday.rb', line 15

def to_query(encoder = nil)
  Utils.build_nested_query(self, nil, params_encoder)
end