Class: Alchemrest::UrlBuilder::Encoders::Custom

Inherits:
Object
  • Object
show all
Defined in:
lib/alchemrest/url_builder/encoders.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Custom

Returns a new instance of Custom.



29
30
31
# File 'lib/alchemrest/url_builder/encoders.rb', line 29

def initialize(&block)
  @block = block
end

Instance Method Details

#call(query) ⇒ Object



33
34
35
# File 'lib/alchemrest/url_builder/encoders.rb', line 33

def call(query)
  @block.call(query)
end