Sha256: 74ca68979a6b58052f99265f13db8796b309dea27a6b3f667eee40bb735f0afc

Contents?: true

Size: 618 Bytes

Versions: 2

Compression:

Stored size: 618 Bytes

Contents

module RDStation
  class Client
    def initialize(access_token:)
      @authorization_header = AuthorizationHeader.new(access_token: access_token)
    end
    
    def contacts
      @contacts ||= RDStation::Contacts.new(authorization_header: @authorization_header)
    end

    def events
      @events ||= RDStation::Events.new(authorization_header: @authorization_header)
    end

    def fields
      @fields ||= RDStation::Fields.new(authorization_header: @authorization_header)
    end

    def webhooks
      @webhooks ||= RDStation::Webhooks.new(authorization_header: @authorization_header)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rdstation-ruby-client-2.1.0 lib/rdstation/client.rb
rdstation-ruby-client-2.0.0 lib/rdstation/client.rb