Class: WCC::Contentful::SimpleClient::Preview
- Inherits:
-
Cdn
- Object
- WCC::Contentful::SimpleClient
- Cdn
- WCC::Contentful::SimpleClient::Preview
- Defined in:
- lib/wcc/contentful/simple_client/preview.rb
Constant Summary
Constants inherited from WCC::Contentful::SimpleClient
Instance Attribute Summary
Attributes inherited from WCC::Contentful::SimpleClient
Attributes included from Instrumentation
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
Methods included from Instrumentation
#_instrumentation_event_prefix, instrument
Constructor Details
#initialize(space:, preview_token:, **options) ⇒ Preview
Returns a new instance of Preview.
5 6 7 8 9 10 11 12 |
# File 'lib/wcc/contentful/simple_client/preview.rb', line 5 def initialize(space:, preview_token:, **) super( **, api_url: [:preview_api_url] || 'https://preview.contentful.com/', space: space, access_token: preview_token ) end |
Instance Method Details
#client_type ⇒ Object
14 15 16 |
# File 'lib/wcc/contentful/simple_client/preview.rb', line 14 def client_type 'preview' end |