class ActiveStorage::BlobKey

Attributes

attributes[R]

Public Class Methods

new(attributes) click to toggle source
Calls superclass method
# File lib/active_storage/blob_key.rb, line 9
def initialize(attributes)
  if attributes.is_a? Hash
    attributes.symbolize_keys!
    super(attributes[:key])
    @attributes = attributes
  else
    super(attributes)
    @attributes = {key: attributes} if attributes
  end
end