Class: Facemock::Database::Permission

Inherits:
Table
  • Object
show all
Defined in:
lib/facemock/database/permission.rb

Direct Known Subclasses

FbGraph::Application::User::Permission

Constant Summary collapse

TABLE_NAME =
:permissions
COLUMN_NAMES =
[:id, :name, :user_id, :created_at]

Constants inherited from Table

Table::CHILDREN

Instance Method Summary collapse

Methods inherited from Table

all, children, #column_names, column_names, column_type, create!, #destroy, #fetch, first, last, #method_missing, method_missing, #persisted?, #save!, table_info, #table_name, table_name, #update_attributes!, where

Constructor Details

#initialize(options = {}) ⇒ Permission

Returns a new instance of Permission.



9
10
11
12
13
14
15
# File 'lib/facemock/database/permission.rb', line 9

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Facemock::Database::Table