class FactoryGirl::RemoteApi::Configuration
Attributes
server_mount_path[R]
server_url[R]
Public Class Methods
new()
click to toggle source
# File lib/factory_girl/remote_api/configuration.rb, line 6 def initialize @server_url = 'http://localhost:3000' @server_mount_path = '/factories' end
Public Instance Methods
server_mount_path=(server_mount_path)
click to toggle source
# File lib/factory_girl/remote_api/configuration.rb, line 15 def server_mount_path=(server_mount_path) @server_mount_path = "/#{server_mount_path}".squeeze('/').gsub(/\/+\Z/, '') end
server_url=(server_url)
click to toggle source
# File lib/factory_girl/remote_api/configuration.rb, line 11 def server_url=(server_url) @server_url = server_url.gsub(/\/$/, '') end