Sha256: cade54106665edb1349bcf05c6adb582c0f6c90302a6e268c7088f8488ead6a9
Contents?: true
Size: 1018 Bytes
Versions: 10
Compression:
Stored size: 1018 Bytes
Contents
require_relative 'resource' module Contentful module Management # Resource class for Locale. class Locale include Contentful::Management::Resource include Contentful::Management::Resource::SystemProperties include Contentful::Management::Resource::Refresher property :code, :string property :name, :string property :contentManagementApi, :boolean property :contentDeliveryApi, :boolean property :publish, :boolean property :default, :boolean property :optional, :boolean # @private def self.create_attributes(_client, attributes) { 'name' => attributes.fetch(:name), 'code' => attributes.fetch(:code), 'default' => attributes.fetch(:default, false), 'optional' => attributes.fetch(:default, false) } end protected def query_attributes(attributes) attributes.each_with_object({}) { |(k, v), result| result[k.to_sym] = v } end end end end
Version data entries
10 entries across 10 versions & 1 rubygems