Created
October 24, 2012 14:27
-
-
Save sakadonohito/3946374 to your computer and use it in GitHub Desktop.
for blog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rfm' | |
| class FMServer | |
| def initialize() | |
| @FM_CONFIG = { | |
| :host => "FileMakerServerの接続先IP", | |
| :account_name => "FileMakerFileのログインアカウント", | |
| :password => "FileMakerFileのログインパスワード", | |
| :database => "FileMakerFileの名前", | |
| :ssl => false, | |
| :root_cert => false, | |
| } | |
| @fm = Rfm::Server.new(@FM_CONFIG) | |
| end | |
| def listAll(lay,sortCond) | |
| return @fm[@FM_CONFIG[:database]][lay].all(sortCond) | |
| end | |
| def create(lay,obj) | |
| @fm[@FM_CONFIG[:database]][lay].create(obj) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment