Sha256: cefe9226a230ca21253b5c247a763632a971716ac4d3c9545a1c958239f6d803

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

require 'facemock/database'
require 'facemock/database/table'
require 'sqlite3'
require 'hashie'

module Facemock
  class Database
    class Permission < Table
      TABLE_NAME = :permissions
      COLUMN_NAMES = [:id, :name, :user_id, :created_at]

      def initialize(options={})
        opts = Hashie::Mash.new(options)
        @id         = opts.id
        @name       = opts.name
        @user_id    = opts.user_id
        @created_at = opts.created_at
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facemock-0.0.6 lib/facemock/database/permission.rb
facemock-0.0.5 lib/facemock/database/permission.rb