Sha256: 1580eb754ba21ba1984a3d0a12888ec6b75920dbf4b8949341b84e279d3e992a

Contents?: true

Size: 782 Bytes

Versions: 3

Compression:

Stored size: 782 Bytes

Contents

module WebMerge
  class Constants
    WEB_MERGE = "https://www.webmerge.me"

    API_ENDPOINT = "#{WEB_MERGE}/api"

    MERGE_ENDPOINT = "#{WEB_MERGE}/merge"
    ROUTE_ENDPOINT = "#{WEB_MERGE}/route"

    DOCUMENTS = "#{API_ENDPOINT}/documents"

    ROUTES = "#{API_ENDPOINT}/routes"

    API_SECRET = ENV['WEB_MERGE_API_SECRET']
    API_KEY = ENV['WEB_MERGE_API_KEY']

    FORCE_TEST_MODE = ENV['WEB_MERGE_FORCE_TEST_MODE']

    PDF = 'pdf'
    HTML = 'html'
    DOCX = 'docx'
    EMAIL = 'email'

    SECURITY_LEVEL_LOW = 'low'
    SECURITY_LEVEL_MEDIUM = 'medium'
    SECURITY_LEVEL_HIGH = 'high'

    SUPPORTED_TYPES = [HTML, PDF, DOCX]
    SUPPORTED_OUTPUTS = [PDF, DOCX, EMAIL]

    SECURITY_LEVELS = [SECURITY_LEVEL_LOW, SECURITY_LEVEL_MEDIUM, SECURITY_LEVEL_HIGH]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
web_merge-1.0.2 lib/web_merge/constants.rb
web_merge-1.0.1 lib/web_merge/constants.rb
web_merge-1.0.0 lib/web_merge/constants.rb