Sha256: ece36923c54428ed22a5ce54a31a8cee34a28107cb0395cd3a417ca8b97421bc

Contents?: true

Size: 367 Bytes

Versions: 9

Compression:

Stored size: 367 Bytes

Contents

module RealSavvy::Concern::InvitesActionsForAdapter
  def invite(id:, email:)
    put("./api/v3/#{path_prefix}/#{id}/invite", {email: email})
  end

  def accept_invite(id:, given:)
    put("./api/v3/#{path_prefix}/#{id}/accept_invite", {given: given})
  end

  def uninvite(id:, email:)
    delete("./api/v3/#{path_prefix}/#{id}/uninvite", {email: email})
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
real_savvy-0.0.12 lib/real_savvy/concern/invites_actions_for_adapter.rb
real_savvy-0.0.10 lib/real_savvy/concern/invites_actions_for_adapter.rb
real_savvy-0.0.9 lib/real_savvy/concern/invites_actions_for_adapter.rb
real_savvy-0.0.8 lib/real_savvy/concern/invites_actions_for_adapter.rb
real_savvy-0.0.7 lib/real_savvy/concern/invites_actions_for_adapter.rb
real_savvy-0.0.6 lib/real_savvy/concern/invites_actions_for_adapter.rb
real_savvy-0.0.5 lib/real_savvy/concern/invites_actions_for_adapter.rb
real_savvy-0.0.4 lib/real_savvy/concern/invites_actions_for_adapter.rb
real_savvy-0.0.3 lib/real_savvy/concern/invites_actions_for_adapter.rb