Module: Rfm

Extended by:
Rfm
Included in:
Rfm
Defined in:
lib/rfm.rb,
lib/rfm.rb,
lib/rfm/base.rb,
lib/rfm/error.rb,
lib/rfm/layout.rb,
lib/rfm/record.rb,
lib/rfm/server.rb,
lib/rfm/version.rb,
lib/rfm/database.rb,
lib/rfm/resultset.rb,
lib/rfm/metadata/field.rb,
lib/rfm/metadata/script.rb,
lib/rfm/utilities/config.rb,
lib/rfm/utilities/factory.rb,
lib/rfm/utilities/xml_parser.rb,
lib/rfm/utilities/fmresultset.rb,
lib/rfm/metadata/field_control.rb,
lib/rfm/utilities/fmpxmlresult.rb,
lib/rfm/metadata/value_list_item.rb,
lib/rfm/utilities/compound_query.rb,
lib/rfm/utilities/case_insensitive_hash.rb

Overview

The classes in this module are used internally by RFM and are not intended for outside use.

Defined Under Namespace

Modules: Config, Error, Factory, Fmpxmlresult, Fmresultset, Metadata, XmlParser Classes: AuthenticationError, Base, CaseInsensitiveHash, CommunicationError, CompoundQuery, Database, Layout, ParameterError, Record, Resultset, Server

Constant Summary collapse

PATH =
File.expand_path(File.dirname(__FILE__))
VERSION_DEFAULT =
'none'
VERSION =
File.read(PATH + '/rfm/VERSION').lines.first.chomp  rescue VERSION_DEFAULT
CONFIG_KEYS =

Should these go in Rfm module?

%w(
	file_name
	file_path
	parser
	host
	port
	account_name
	password
	database
	layout
	ignore_bad_data
	ssl
	root_cert
	root_cert_name
	root_cert_path
	warn_on_redirect
	raise_on_401
	timeout
	log_actions
	log_responses
	log_parser
	use
	parent
	grammar
	field_mapping
)
CONFIG_DONT_STORE =
%w(strings using parents symbols objects)

Instance Method Summary collapse

Instance Method Details

#convert_date_time_format(fm_format) ⇒ Object



143
144
145
146
147
148
149
150
151
# File 'lib/rfm/utilities/fmresultset.rb', line 143

def convert_date_time_format(fm_format)
  fm_format.gsub!('MM', '%m')
  fm_format.gsub!('dd', '%d')
  fm_format.gsub!('yyyy', '%Y')
  fm_format.gsub!('HH', '%H')
  fm_format.gsub!('mm', '%M')
  fm_format.gsub!('ss', '%S')
  fm_format
end

#infoObject



47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/rfm.rb', line 47

def info
   rslt = <<-EEOOFF
     Name: ginjo-rfm
     Version: #{VERSION}
     ActiveSupport Version: #{ActiveSupport::VERSION::STRING}
     ActiveModel Loaded? #{defined?(ActiveModel) ? 'true' : 'false'}
     ActiveModel Loadable? #{begin; require 'active_model'; rescue LoadError; $!; end}
     XML Parser: #{XmlParser.backend}
   EEOOFF
   rslt.gsub!(/^[ \t]*/, '')
 rescue
 	"Could not retrieve info: #{$!}"
end

#info_shortObject



61
62
63
# File 'lib/rfm.rb', line 61

def info_short
	"Using ginjo-rfm version #{::Rfm::VERSION} with #{XmlParser.backend}"
end

#modelize(*args) ⇒ Object



75
76
77
78
# File 'lib/rfm.rb', line 75

def modelize(*args)
	Rfm::Base
	Rfm::Factory.modelize(*args)
end

#models(*args) ⇒ Object



70
71
72
73
# File 'lib/rfm.rb', line 70

def models(*args)
	Rfm::Base
	Rfm::Factory.models(*args)
end