Sha256: 5bd70dcda433e9d08a8bb51f71e248e2ecdda51a4ac11ffd67e973cef967a948
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true require 'codat/base_model' module Codat module Models class Integration < BaseModel ENDPOINT = '/integrations' attributes :key, :logo_url, :name, :enabled, :source_id, :integration_id, :source_type def self.all(params = {}) result = get(ENDPOINT, params) return [] unless successful_response?(result) result.body.map { |integration| new(json: integration) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codat-0.1.5 | lib/codat/models/integration.rb |