Sha256: 2d52220b87c032265e781a82b693b38fae0554a4d23ea4232c753979ca68b9bb

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

require 'facemock/database/table'

module Facemock
  class AuthorizationCode < Database::Table
    TABLE_NAME = :authorization_codes
    COLUMN_NAMES = [:id, :string, :user_id, :created_at]

    def initialize(options={})
      opts = Hashie::Mash.new(options)
      @id         = opts.id
      @string     = opts.string || Faker::Lorem.characters
      @user_id    = opts.user_id
      @created_at = opts.created_at
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facemock-0.0.11 lib/facemock/authorization_code.rb
facemock-0.0.10 lib/facemock/authorization_code.rb