Class: Codify::Encoders::Base64Encoder
- Inherits:
-
AbstractEncoder
- Object
- AbstractEncoder
- Codify::Encoders::Base64Encoder
- Defined in:
- lib/codify/encoders/base64_encoder.rb
Instance Method Summary collapse
Methods inherited from AbstractEncoder
decode, #decodes?, #depends_on_record?, encode, #initialize, #record=
Constructor Details
This class inherits a constructor from Codify::Encoders::AbstractEncoder
Instance Method Details
#decode(data) ⇒ Object
14 15 16 |
# File 'lib/codify/encoders/base64_encoder.rb', line 14 def decode data Base64.send method_name((:representation),:decode64), data end |
#encode(data) ⇒ Object
10 11 12 |
# File 'lib/codify/encoders/base64_encoder.rb', line 10 def encode data Base64.send method_name((:representation),:encode64), data end |