Class: Rsense::Client::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/rsense/client.rb

Defined Under Namespace

Classes: Config

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



6
7
8
# File 'lib/rsense/client.rb', line 6

def config
  @config
end

Instance Method Details

#gather_infoObject



14
15
16
# File 'lib/rsense/client.rb', line 14

def gather_info
  @config = Config.new(gem_home, gem_path, $:.join(File::PATH_SEPARATOR))
end

#gem_homeObject



18
19
20
# File 'lib/rsense/client.rb', line 18

def gem_home
  ENV["GEM_HOME"]
end

#gem_pathObject



22
23
24
25
26
27
# File 'lib/rsense/client.rb', line 22

def gem_path
  gem_pth = []
  gem_pth << ENV["GEM_PATH"]
  gem_pth << Gem.path
  gem_pth.join(File::PATH_SEPARATOR)
end