class Dgrid::API::Organization
Public Class Methods
db_fields()
click to toggle source
# File lib/dgrid/api/organization.rb, line 12 def self.db_fields %w(id name description) end
new(options)
click to toggle source
Calls superclass method
Dgrid::API::NamedEntity::new
# File lib/dgrid/api/organization.rb, line 8 def initialize(options) super(options) end
pluralized()
click to toggle source
# File lib/dgrid/api/organization.rb, line 21 def self.pluralized 'organizations' end
Public Instance Methods
add_person(person)
click to toggle source
# File lib/dgrid/api/organization.rb, line 17 def add_person(person) add_entity(person) end