class WCC::Contentful::SimpleClient::Preview

@api Client

Public Class Methods

new(space:, preview_token:, **options) click to toggle source
Calls superclass method WCC::Contentful::SimpleClient::Cdn::new
# File lib/wcc/contentful/simple_client.rb, line 243
def initialize(space:, preview_token:, **options)
  super(
    **options,
    api_url: options[:preview_api_url] || 'https://preview.contentful.com/',
    space: space,
    access_token: preview_token
  )
end

Public Instance Methods

client_type() click to toggle source
# File lib/wcc/contentful/simple_client.rb, line 252
def client_type
  'preview'
end