Sha256: f179b4d81830036fba13249628c7774de1c2e4d7ecf6b7c3144d610a0e4b9aec
Contents?: true
Size: 434 Bytes
Versions: 2
Compression:
Stored size: 434 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 || rand(36**255).to_s(36) @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.9 | lib/facemock/authorization_code.rb |
facemock-0.0.8 | lib/facemock/authorization_code.rb |