module Itjobstack

@author Frank Pimenta

@author Frank Pimenta

Constants

VERSION

Public Class Methods

apiKey() click to toggle source

@return [String] credentials' apiKey

# File lib/itjobstack.rb, line 48
def apiKey 
  @@config && @@config.fetch(:apiKey)
end
apiKey=(apiKey) click to toggle source

sets apiKey in configuration object

@return [String] credentials' apiKey

# File lib/itjobstack.rb, line 43
def apiKey= apiKey 
  @@config.merge!({apiKey: apiKey})
end
config() click to toggle source

holds the credentials pair to jobstack

@return [Hash] both params pair

# File lib/itjobstack.rb, line 24
def config
  @@config ||= {email: nil, apiKey: nil}
end
config=(email: , apiKey: @@config = {email: email, apiKey: apiKey}) click to toggle source

sets the credentials pair to jobstack in configuration object

@deprecated Use {#set_config} instead @return [Hash] both params pair

# File lib/itjobstack.rb, line 10
def config= email: , apiKey: 
  @@config = {email: email, apiKey: apiKey}
end
email() click to toggle source

@return [String] credentials' email

# File lib/itjobstack.rb, line 36
def email
  @@config && @@config.fetch(:email)
end
email=(email) click to toggle source

sets email in configuration object

@return [String] credentials' email

# File lib/itjobstack.rb, line 31
def email= email
  @@config.merge!({email: email})
end
has_config?() click to toggle source

@return [Boolean] credentials' presence

# File lib/itjobstack.rb, line 53
def has_config? 
  self.email && self.apiKey
end
set_config(email: , apiKey: @@config = {email: email, apiKey: apiKey}) click to toggle source

sets the credentials pair to jobstack in configuration object

@return [Hash] both params pair

# File lib/itjobstack.rb, line 17
def set_config email: , apiKey: 
  @@config = {email: email, apiKey: apiKey}
end

Private Instance Methods

apiKey() click to toggle source

@return [String] credentials' apiKey

# File lib/itjobstack.rb, line 48
def apiKey 
  @@config && @@config.fetch(:apiKey)
end
apiKey=(apiKey) click to toggle source

sets apiKey in configuration object

@return [String] credentials' apiKey

# File lib/itjobstack.rb, line 43
def apiKey= apiKey 
  @@config.merge!({apiKey: apiKey})
end
config() click to toggle source

holds the credentials pair to jobstack

@return [Hash] both params pair

# File lib/itjobstack.rb, line 24
def config
  @@config ||= {email: nil, apiKey: nil}
end
config=(email: , apiKey: @@config = {email: email, apiKey: apiKey}) click to toggle source

sets the credentials pair to jobstack in configuration object

@deprecated Use {#set_config} instead @return [Hash] both params pair

# File lib/itjobstack.rb, line 10
def config= email: , apiKey: 
  @@config = {email: email, apiKey: apiKey}
end
email() click to toggle source

@return [String] credentials' email

# File lib/itjobstack.rb, line 36
def email
  @@config && @@config.fetch(:email)
end
email=(email) click to toggle source

sets email in configuration object

@return [String] credentials' email

# File lib/itjobstack.rb, line 31
def email= email
  @@config.merge!({email: email})
end
has_config?() click to toggle source

@return [Boolean] credentials' presence

# File lib/itjobstack.rb, line 53
def has_config? 
  self.email && self.apiKey
end
set_config(email: , apiKey: @@config = {email: email, apiKey: apiKey}) click to toggle source

sets the credentials pair to jobstack in configuration object

@return [Hash] both params pair

# File lib/itjobstack.rb, line 17
def set_config email: , apiKey: 
  @@config = {email: email, apiKey: apiKey}
end