Module: Shark::RSpec::FakeAssetService::PublicId
- Defined in:
- lib/shark/rspec/fake_asset_service/public_id.rb
Class Method Summary collapse
Class Method Details
.decode_public_id(public_id) ⇒ Object
9 10 11 12 13 |
# File 'lib/shark/rspec/fake_asset_service/public_id.rb', line 9 def decode_public_id(public_id) Base64.urlsafe_decode64(public_id) rescue ArgumentError nil end |
.encode_id(id) ⇒ Object
15 16 17 |
# File 'lib/shark/rspec/fake_asset_service/public_id.rb', line 15 def encode_id(id) Base64.urlsafe_encode64(id) end |