Class: Filemaker::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/filemaker/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



6
7
8
# File 'lib/filemaker/configuration.rb', line 6

def initialize
  @endpoint = '/fmi/xml/fmresultset.xml'
end

Instance Attribute Details

#account_nameObject

Returns the value of attribute account_name.



3
4
5
# File 'lib/filemaker/configuration.rb', line 3

def 
  @account_name
end

#endpointObject

Returns the value of attribute endpoint.



3
4
5
# File 'lib/filemaker/configuration.rb', line 3

def endpoint
  @endpoint
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/filemaker/configuration.rb', line 3

def host
  @host
end

#logObject

Returns the value of attribute log.



4
5
6
# File 'lib/filemaker/configuration.rb', line 4

def log
  @log
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/filemaker/configuration.rb', line 3

def password
  @password
end

#sslObject

Returns the value of attribute ssl.



3
4
5
# File 'lib/filemaker/configuration.rb', line 3

def ssl
  @ssl
end

Instance Method Details

#connection_optionsObject



20
21
22
# File 'lib/filemaker/configuration.rb', line 20

def connection_options
  ssl.is_a?(Hash) ? { ssl: ssl } : {}
end

#not_configurable?Boolean



10
11
12
# File 'lib/filemaker/configuration.rb', line 10

def not_configurable?
  host_missing? ||  || password_missing?
end

#urlObject



24
25
26
# File 'lib/filemaker/configuration.rb', line 24

def url
  (ssl.is_a?(Hash) || ssl == true) ? "https://#{host}" : "http://#{host}"
end