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.
-
#ssl_verifyhost ⇒ Object
Returns the value of attribute ssl_verifyhost.
-
#ssl_verifypeer ⇒ Object
Returns the value of attribute ssl_verifypeer.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
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.
8 9 10 11 12 13 |
# File 'lib/filemaker/configuration.rb', line 8 def initialize @endpoint = '/fmi/xml/fmresultset.xml' @timeout = 0 @ssl_verifypeer = false @ssl_verifyhost = 0 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.
6 7 8 |
# File 'lib/filemaker/configuration.rb', line 6 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.
4 5 6 |
# File 'lib/filemaker/configuration.rb', line 4 def ssl @ssl end |
#ssl_verifyhost ⇒ Object
Returns the value of attribute ssl_verifyhost.
4 5 6 |
# File 'lib/filemaker/configuration.rb', line 4 def ssl_verifyhost @ssl_verifyhost end |
#ssl_verifypeer ⇒ Object
Returns the value of attribute ssl_verifypeer.
4 5 6 |
# File 'lib/filemaker/configuration.rb', line 4 def ssl_verifypeer @ssl_verifypeer end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/filemaker/configuration.rb', line 5 def timeout @timeout end |
Instance Method Details
#connection_options ⇒ Object
25 26 27 |
# File 'lib/filemaker/configuration.rb', line 25 def ssl.is_a?(Hash) ? { ssl: ssl } : {} end |
#is_ssl? ⇒ Boolean
29 30 31 |
# File 'lib/filemaker/configuration.rb', line 29 def is_ssl? ssl.is_a?(Hash) || ssl == true end |
#not_configurable? ⇒ Boolean
15 16 17 |
# File 'lib/filemaker/configuration.rb', line 15 def not_configurable? host_missing? || account_name_missing? || password_missing? end |
#url ⇒ Object
33 34 35 |
# File 'lib/filemaker/configuration.rb', line 33 def url is_ssl? ? "https://#{host}" : "http://#{host}" end |