Skip to content

Commit b69f0e0

Browse files
authored
replace attr_accessor to attr_reader (#583)
1 parent 5eff035 commit b69f0e0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/appium_lib/driver.rb

+10-10
Original file line numberDiff line numberDiff line change
@@ -276,35 +276,35 @@ class Driver
276276
# The amount to sleep in seconds before every webdriver http call.
277277
attr_accessor :global_webdriver_http_sleep
278278
# Selenium webdriver capabilities
279-
attr_accessor :caps
279+
attr_reader :caps
280280
# Custom URL for the selenium server
281-
attr_accessor :custom_url
281+
attr_reader :custom_url
282282
# Export session id to textfile in /tmp for 3rd party tools
283-
attr_accessor :export_session
283+
attr_reader :export_session
284284
# Default wait time for elements to appear
285285
# Returns the default client side wait.
286286
# This value is independent of what the server is using
287287
# @return [Integer]
288288
attr_reader :default_wait
289289
# Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_USERNAME is in ENV.
290-
attr_accessor :sauce_username
290+
attr_reader :sauce_username
291291
# Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_ACCESS_KEY is in ENV.
292-
attr_accessor :sauce_access_key
292+
attr_reader :sauce_access_key
293293
# Override the Sauce Appium endpoint to allow e.g. TestObject tests
294-
attr_accessor :sauce_endpoint
294+
attr_reader :sauce_endpoint
295295
# Appium's server port
296-
attr_accessor :appium_port
296+
attr_reader :appium_port
297297
# Device type to request from the appium server
298-
attr_accessor :appium_device
298+
attr_reader :appium_device
299299
# Automation name sent to appium server or received from server
300300
# If automation_name is nil, it is not set both client side and server side.
301301
attr_reader :automation_name
302302
# Appium's server version
303303
attr_reader :appium_server_status
304304
# Boolean debug mode for the Appium Ruby bindings
305-
attr_accessor :appium_debug
305+
attr_reader :appium_debug
306306
# instance of AbstractEventListener for logging support
307-
attr_accessor :listener
307+
attr_reader :listener
308308
# Returns the driver
309309
# @return [Driver] the driver
310310
attr_reader :driver

0 commit comments

Comments
 (0)