Sha256: 7feffaaaf614d9722adc0301e7e48c33adf001ee4fd8446e4b282d4137fe54c4

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

require 'alba/version'
require 'alba/serializers/default_serializer'
require 'alba/serializer'
require 'alba/resource'

# Core module
module Alba
  class Error < StandardError; end

  class << self
    attr_reader :backend
  end

  def self.backend=(backend)
    @backend = backend&.to_sym
  end

  def self.serialize(object)
    Serializers::DefaultSerializer.new(object).serialize
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alba-0.4.0 lib/alba.rb