Sha256: 53cfde5f04f23748d35a054a0aa6ba17e0a47c7c643d9b62c77a2e111032691a

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 Bytes

Contents

module Duedil
  class Director
    include Duedil::Client

    def all(filters = {})
      path = path 'directors'
      request path, filters: filters
    end

    def get(director_id)
      path = path "directors/#{director_id}"
      request path
    end

    def companies(director_id, filters = {})
      path = path "directors/#{director_id}/companies"
      request path, filters
    end

    def directorships(director_id, filters = {})
      path = path "directors/#{director_id}/directorships"
      request path, filters
    end

    def service_addresses(director_id, filters = {})
      path = path "directors/#{director_id}/service-addresses"
      request path, filters
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
duedil-client-0.0.1 lib/duedil/director.rb