mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Silence warnings about potentially private attribute
This commit is contained in:
parent
641c6c106b
commit
101439bbda
1 changed files with 9 additions and 2 deletions
|
@ -77,7 +77,11 @@ module Fog
|
|||
end
|
||||
|
||||
private
|
||||
attr_reader :client
|
||||
|
||||
def client
|
||||
return @client if defined?(@client)
|
||||
end
|
||||
|
||||
#read mocks xml
|
||||
def read_xml(file_name)
|
||||
file_path = File.join(File.dirname(__FILE__),"requests","compute","mock_files",file_name)
|
||||
|
@ -103,7 +107,10 @@ module Fog
|
|||
end
|
||||
|
||||
private
|
||||
attr_reader :client
|
||||
|
||||
def client
|
||||
@client
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue