Class: Closeio::Rails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/closeio/rails.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



18
19
20
# File 'lib/closeio/rails.rb', line 18

def api_key
  @api_key
end

#clientObject (readonly)

Returns the value of attribute client.



19
20
21
# File 'lib/closeio/rails.rb', line 19

def client
  @client
end

#verboseObject

Returns the value of attribute verbose.



18
19
20
# File 'lib/closeio/rails.rb', line 18

def verbose
  @verbose
end

Instance Method Details

#configure_connectionObject



21
22
23
24
# File 'lib/closeio/rails.rb', line 21

def configure_connection
  @verbose ||= false
  @client = Closeio::Client.new(@api_key, @verbose, nil, true)
end