Module: Suc

Defined in:
lib/suc.rb,
lib/reports/email.rb,
lib/reports/personal.rb

Defined Under Namespace

Modules: Reports Classes: Mc, Message

Constant Summary collapse

DEFAULT_URL =
ENV['SUFLOW_URL'] || 'http://localhost:3000'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

Returns the value of attribute access_token.



16
17
18
# File 'lib/suc.rb', line 16

def access_token
  @access_token
end

.email_cc_recipientsObject

Returns the value of attribute email_cc_recipients.



16
17
18
# File 'lib/suc.rb', line 16

def email_cc_recipients
  @email_cc_recipients
end

.email_clientObject

Returns the value of attribute email_client.



16
17
18
# File 'lib/suc.rb', line 16

def email_client
  @email_client
end

.email_recipientsObject

Returns the value of attribute email_recipients.



16
17
18
# File 'lib/suc.rb', line 16

def email_recipients
  @email_recipients
end

Class Method Details

.resource_url(resource) ⇒ Object



22
23
24
# File 'lib/suc.rb', line 22

def resource_url(resource)
  URI.join(DEFAULT_URL, resource)
end

.token_authObject



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

def token_auth
  "Token #{access_token}"
end