Sha256: 4b53cee4ec445e82f7d8a95bbe6abf6e3853fab130c1c2d63c5f08ed2a1e1f9c
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
require 'facemock/database/table' module Facemock class Database class AuthorizationCode < 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 || rand(36**255).to_s(36) @user_id = opts.user_id @created_at = opts.created_at end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facemock-0.0.7 | lib/facemock/database/authorization_code.rb |