Sha256: 1bfc46cf63c40a84e6d2bfa46a8b69f4fb3c22607043591e9262438c2fb317cb

Contents?: true

Size: 778 Bytes

Versions: 1

Compression:

Stored size: 778 Bytes

Contents

module ChartMogul
  class DataSource < APIResource
    set_resource_name 'Data Source'
    set_resource_path '/v1/data_sources'

    readonly_attr :uuid
    readonly_attr :status
    readonly_attr :system
    readonly_attr :created_at, type: :time

    writeable_attr :name

    include API::Actions::All
    include API::Actions::Create
    include API::Actions::Custom
    include API::Actions::Destroy
    include API::Actions::Retrieve

    def self.all(options = {})
      DataSources.all(options)
    end
  end

  class DataSources < APIResource
    set_resource_name 'Data Sources'
    set_resource_path '/v1/data_sources'

    set_resource_root_key :data_sources

    include Concerns::Entries

    set_entry_class DataSource
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chartmogul-ruby-1.1.5 lib/chartmogul/data_source.rb