examples/examples.rb in microcms-ruby-sdk-1.0.2 vs examples/examples.rb in microcms-ruby-sdk-1.1.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true -MicroCMS.service_domain = ENV['YOUR_DOMAIN'] -MicroCMS.api_key = ENV['YOUR_API_KEY'] +MicroCMS.service_domain = ENV.fetch('YOUR_DOMAIN', nil) +MicroCMS.api_key = ENV.fetch('YOUR_API_KEY', nil) -endpoint = ENV['YOUR_ENDPOINT'] +endpoint = ENV.fetch('YOUR_ENDPOINT', nil) puts MicroCMS.list(endpoint) puts MicroCMS.list(endpoint, { limit: 100,