Class: Filemaker::Configuration
- Inherits:
-
Object
- Object
- Filemaker::Configuration
- Defined in:
- lib/filemaker/configuration.rb
Instance Attribute Summary collapse
-
#account_name ⇒ Object
Returns the value of attribute account_name.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#host ⇒ Object
Returns the value of attribute host.
-
#log ⇒ Object
Returns the value of attribute log.
-
#password ⇒ Object
Returns the value of attribute password.
-
#ssl ⇒ Object
Returns the value of attribute ssl.
Instance Method Summary collapse
- #connection_options ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #is_ssl? ⇒ Boolean
- #not_configurable? ⇒ Boolean
- #url ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 |
# File 'lib/filemaker/configuration.rb', line 6 def initialize @endpoint = '/fmi/xml/fmresultset.xml' end |
Instance Attribute Details
#account_name ⇒ Object
Returns the value of attribute account_name.
3 4 5 |
# File 'lib/filemaker/configuration.rb', line 3 def account_name @account_name end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
3 4 5 |
# File 'lib/filemaker/configuration.rb', line 3 def endpoint @endpoint end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/filemaker/configuration.rb', line 3 def host @host end |
#log ⇒ Object
Returns the value of attribute log.
4 5 6 |
# File 'lib/filemaker/configuration.rb', line 4 def log @log end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/filemaker/configuration.rb', line 3 def password @password end |
#ssl ⇒ Object
Returns the value of attribute ssl.
3 4 5 |
# File 'lib/filemaker/configuration.rb', line 3 def ssl @ssl end |
Instance Method Details
#connection_options ⇒ Object
20 21 22 |
# File 'lib/filemaker/configuration.rb', line 20 def ssl.is_a?(Hash) ? { ssl: ssl } : {} end |
#is_ssl? ⇒ Boolean
24 25 26 |
# File 'lib/filemaker/configuration.rb', line 24 def is_ssl? ssl.is_a?(Hash) || ssl == true end |
#not_configurable? ⇒ Boolean
10 11 12 |
# File 'lib/filemaker/configuration.rb', line 10 def not_configurable? host_missing? || account_name_missing? || password_missing? end |
#url ⇒ Object
28 29 30 |
# File 'lib/filemaker/configuration.rb', line 28 def url is_ssl? ? "https://#{host}" : "http://#{host}" end |