Class: Reattract::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/reattract/configuration.rb

Overview

Allows for configuration oof reattract connections

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
# File 'lib/reattract/configuration.rb', line 8

def initialize
  @api_host    = 'api.reattract.io'
  @api_version = '/v1'
  @use_ssl     = true
end

Instance Attribute Details

#api_hostObject

Returns the value of attribute api_host.



6
7
8
# File 'lib/reattract/configuration.rb', line 6

def api_host
  @api_host
end

#api_versionObject

Returns the value of attribute api_version.



6
7
8
# File 'lib/reattract/configuration.rb', line 6

def api_version
  @api_version
end

#portObject

Returns the value of attribute port.



6
7
8
# File 'lib/reattract/configuration.rb', line 6

def port
  @port
end

#public_keyObject

Returns the value of attribute public_key.



6
7
8
# File 'lib/reattract/configuration.rb', line 6

def public_key
  @public_key
end

#secret_keyObject

Returns the value of attribute secret_key.



6
7
8
# File 'lib/reattract/configuration.rb', line 6

def secret_key
  @secret_key
end

#use_sslObject

Returns the value of attribute use_ssl.



6
7
8
# File 'lib/reattract/configuration.rb', line 6

def use_ssl
  @use_ssl
end