class Scene7::Config

Constants

AUTH_NAMESPACE

Attributes

app_name[R]
app_version[R]
password[R]
subdomain[R]
user[R]

Public Class Methods

new(subdomain, user, password, app_name, app_version) click to toggle source
# File lib/scene7/config.rb, line 9
def initialize(subdomain, user, password, app_name, app_version)
  @subdomain   = subdomain
  @user        = user
  @password    = password
  @app_name    = app_name
  @app_version = app_version
end

Public Instance Methods

endpoint() click to toggle source
# File lib/scene7/config.rb, line 17
def endpoint
  "https://#{subdomain}.scene7.com/scene7/services/IpsApiService"
end
header() click to toggle source
# File lib/scene7/config.rb, line 21
def header
  {
    :auth_header => {
    :user => user,
    :password => password,
    :app_name => app_name,
    :app_version => app_version
  },
    :attributes! => { :auth_header => { :xmlns => AUTH_NAMESPACE } }
  }
end