Class: WCC::Contentful::SimpleClient::Preview
- Inherits:
-
Cdn
- Object
- WCC::Contentful::SimpleClient
- Cdn
- WCC::Contentful::SimpleClient::Preview
- Defined in:
- lib/wcc/contentful/simple_client.rb
Constant Summary
Constants inherited from WCC::Contentful::SimpleClient
Instance Attribute Summary
Attributes inherited from WCC::Contentful::SimpleClient
Instance Method Summary collapse
- #client_type ⇒ Object
-
#initialize(space:, preview_token:, **options) ⇒ Preview
constructor
A new instance of Preview.
Methods inherited from Cdn
#asset, #assets, #content_types, #entries, #entry, #sync
Methods inherited from WCC::Contentful::SimpleClient
Constructor Details
#initialize(space:, preview_token:, **options) ⇒ Preview
Returns a new instance of Preview.
187 188 189 190 191 192 193 194 |
# File 'lib/wcc/contentful/simple_client.rb', line 187 def initialize(space:, preview_token:, **) super( api_url: [:api_url] || 'https://preview.contentful.com/', space: space, access_token: preview_token, ** ) end |
Instance Method Details
#client_type ⇒ Object
196 197 198 |
# File 'lib/wcc/contentful/simple_client.rb', line 196 def client_type 'preview' end |