class Bookboon::Config

Attributes

branding_id[RW]
id[RW]
language[RW]
rotation_id[RW]
secret[RW]

Public Class Methods

new() click to toggle source
# File lib/bookboon/config.rb, line 5
def initialize
  @language = "en"
end

Public Instance Methods

headers() click to toggle source
# File lib/bookboon/config.rb, line 9
def headers
  _headers = {}

  _headers["Accept-Language"] = @language
  _headers["X-Bookboon-Branding"] = branding_id if branding_id
  _headers["X-Bookboon-Rotation"] = rotation_id if rotation_id

  _headers
end