Sha256: 11670e653e4fe81ed47f201cc95b79d81a44efe2f85c3d4c8dc203f1c1b384d1

Contents?: true

Size: 376 Bytes

Versions: 14

Compression:

Stored size: 376 Bytes

Contents

module KB
  module Updatable
    extend ActiveSupport::Concern

    included do
      include Queryable
    end

    module ClassMethods
      def update(key, attributes)
        api_response = kb_client.update(key, attributes)
        attributes_from_response(api_response)
      rescue Faraday::Error => e
        raise KB::Error.from_faraday(e)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
barkibu-kb-0.27.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.26.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.25.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.24.1 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.24.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.23.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.22.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.21.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.20.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.19.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.18.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.17.0 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.16.2 lib/kb/models/concerns/updatable.rb
barkibu-kb-0.16.1 lib/kb/models/concerns/updatable.rb