Sha256: c255589513175f3fad5919da7a0cef3692795bbc749ad4ee4a1ba3d3a48da9bd

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

module CodaDocs
  class Client
    module Sections
      def sections(doc_id, options = {})
        response = self.class.get("/docs/#{doc_id}/sections", query: options)
        response.parsed_response['items']
      end

      def section(doc_id, section_id, options = {})
        self.class.get("/docs/#{doc_id}/sections/#{section_id}", query: options)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coda_docs-0.1.2 lib/coda_docs/client/sections.rb
coda_docs-0.1.1.1 lib/coda_docs/client/sections.rb
coda_docs-0.1.1 lib/coda_docs/client/sections.rb