Class: FisheyeCrucible::Client
- Inherits:
-
Object
- Object
- FisheyeCrucible::Client
- Defined in:
- lib/fisheye-crucible/client.rb
Overview
This is the parent class for accessing Fisheye/Crucible. This will change quite a bit once work on the current Fisheye/Crucible gets started. For now, look at the docs for FisheyeCrucible::Client::Legacy to get started.
Direct Known Subclasses
Defined Under Namespace
Classes: Legacy
Instance Attribute Summary (collapse)
-
- (Boolean) do_debug
Turn debug on or off.
Instance Method Summary (collapse)
-
- (Object) debug(string)
Print out string if debug is turned on.
-
- (Client) initialize(server)
constructor
Sets up a RestClient object to interact with the server(s).
Constructor Details
- (Client) initialize(server)
Sets up a RestClient object to interact with the server(s).
16 17 18 19 20 21 |
# File 'lib/fisheye-crucible/client.rb', line 16 def initialize(server) @server = server @fisheye_rest = RestClient::Resource.new(@server) @token = nil @do_debug = false end |
Instance Attribute Details
- (Boolean) do_debug
Turn debug on or off
11 12 13 |
# File 'lib/fisheye-crucible/client.rb', line 11 def do_debug @do_debug end |
Instance Method Details
- (Object) debug(string)
Print out string if debug is turned on.
26 27 28 29 30 |
# File 'lib/fisheye-crucible/client.rb', line 26 def debug(string) if @do_debug puts string end end |