Class: Alchemrest::UrlBuilder::Encoders::Custom
- Inherits:
-
Object
- Object
- Alchemrest::UrlBuilder::Encoders::Custom
- Defined in:
- lib/alchemrest/url_builder/encoders.rb
Instance Method Summary collapse
- #call(query) ⇒ Object
-
#initialize(&block) ⇒ Custom
constructor
A new instance of Custom.
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 |