Class: Filemaker::Database
- Inherits:
-
Object
- Object
- Filemaker::Database
- Defined in:
- lib/filemaker/database.rb
Instance Attribute Summary collapse
-
#layouts ⇒ Filemaker::Store::LayoutStore
(also: #layout, #lay)
readonly
The layout store.
-
#name ⇒ String
readonly
Database name.
-
#scripts ⇒ Filemaker::Store::ScriptStore
readonly
The script store.
-
#server ⇒ Filemaker::Server
readonly
The server.
Instance Method Summary collapse
-
#[](layout_name) ⇒ Object
A very convenient way to access some layout from this database.
-
#initialize(name, server) ⇒ Database
constructor
A new instance of Database.
Constructor Details
#initialize(name, server) ⇒ Database
Returns a new instance of Database.
17 18 19 20 21 22 |
# File 'lib/filemaker/database.rb', line 17 def initialize(name, server) @name = name @server = server @layouts = Store::LayoutStore.new(server, self) @scripts = Store::ScriptStore.new(server, self) end |
Instance Attribute Details
#layouts ⇒ Filemaker::Store::LayoutStore (readonly) Also known as: layout, lay
Returns the layout store.
10 11 12 |
# File 'lib/filemaker/database.rb', line 10 def layouts @layouts end |
#name ⇒ String (readonly)
Returns database name.
4 5 6 |
# File 'lib/filemaker/database.rb', line 4 def name @name end |
#scripts ⇒ Filemaker::Store::ScriptStore (readonly)
Returns the script store.
15 16 17 |
# File 'lib/filemaker/database.rb', line 15 def scripts @scripts end |
#server ⇒ Filemaker::Server (readonly)
Returns the server.
7 8 9 |
# File 'lib/filemaker/database.rb', line 7 def server @server end |
Instance Method Details
#[](layout_name) ⇒ Object
A very convenient way to access some layout from this database
25 26 27 |
# File 'lib/filemaker/database.rb', line 25 def [](layout_name) layouts[layout_name] end |