Class: Moneta::Transforms::UrlsafeBase64
- Inherits:
-
Base64
- Object
- Moneta::Transform
- Base64
- Moneta::Transforms::UrlsafeBase64
- Defined in:
- lib/moneta/transforms/urlsafebase64.rb
Overview
Encodes strings in URL-safe Base64. This is a convenience wrapper around Base64.
Instance Method Summary collapse
-
#initialize(padding: true, **options) ⇒ UrlsafeBase64
constructor
A new instance of UrlsafeBase64.
Methods inherited from Base64
Methods inherited from Moneta::Transform
#decodable?, #decode, delegate_to, #encode, #method_missing, #respond_to_missing?
Constructor Details
#initialize(padding: true, **options) ⇒ UrlsafeBase64
Returns a new instance of UrlsafeBase64.
6 7 8 |
# File 'lib/moneta/transforms/urlsafebase64.rb', line 6 def initialize(padding: true, **) super(url_safe: true, strict: false, padding: padding, **) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Moneta::Transform