Class: OozieClient::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/oozie-client/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(oozie_url) ⇒ Config

Returns a new instance of Config.



7
8
9
10
# File 'lib/oozie-client/config.rb', line 7

def initialize oozie_url
  @oozie_url = oozie_url
  @client = RestClient::Resource.new "#{oozie_url}/v1"
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



5
6
7
# File 'lib/oozie-client/config.rb', line 5

def client
  @client
end

#oozie_urlObject (readonly)

Returns the value of attribute oozie_url.



4
5
6
# File 'lib/oozie-client/config.rb', line 4

def oozie_url
  @oozie_url
end