Sha256: 43d085ca8af23521a45c6dd839ece5b5a93dc76468203c0a6fb7566e55945653

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true
module TopsConnect
  module Communities
    # Method: GET
    # Endpoint: Community_GetList
    def communities
      get('/community').map do |community|
        TopsConnect::Community.new community['CommunityKey'], community
      end
    end

    # Method: GET
    # Endpoint: Community_Get
    def community(community_id)
      TopsConnect::Community.new community_id
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tops_connect-0.1.4 lib/tops_connect/communities.rb