mumuki/mumuki-domain

View on GitHub
app/models/preferences.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Preferences
  include ActiveModel::Model

  def self.attributes
    [:uppercase_mode]
  end

  attr_accessor *self.attributes

  def self.from_attributes(*args)
    new self.attributes.zip(args).to_h
  end

  def uppercase?
    uppercase_mode
  end
end