Sha256: 521c72ee9279f55ae79fbdc8d8a97727474a01fa5c1d4c4f85bcc82fdb645b81

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

#
#  rhom.rb
#  rhodes
#  This module represents the rhodes mini OM
#
#  Copyright (C) 2008 Lars Burgess. All rights reserved.
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

require 'rhom/rhom_object_factory'
require 'rhom/rhom_object'
if defined? RHO_ME
	require 'rhom/rhom_db_adapterME'
else
	require 'rhom/rhom_db_adapter'
end

module Rhom
  TABLE_NAME = 'object_values'
  
  class Rhom
    include RhomObject
    attr_accessor :factory
  
    def initialize
      @factory = RhomObjectFactory.new
    end
    
    def self.client_id
      c_id = ::Rhom::RhomDbAdapter::select_from_table('client_info','client_id')[0]
      c_id.nil? ? nil : c_id['client_id']
    end
  end # Rhom
end # Rhom

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhodes-0.2.6 lib/rhom/rhom.rb