Sha256: d024e24a3da327e1cfffbab32ceac54b3b963158279471f15705d751b5429709
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
module Ruroku class CollaboratorSet < NestedResourceSet resource_class Collaborator collection_api_selector :get_collaborators # Map API methods to collection methods. # # Examples # # collaborators.add 'collaborator-email' # collaborators.delete 'collaborator-email' map_api add: :post_collaborator, delete: :delete_collaborator # Public: Find a Collaborator with specified email. # # Examples # # collaborators['guy@me.com'] # # Returns the Collaborator object. def [](collaborator_email) select { |collaborator| collaborator.email == collaborator_email }.first end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruroku-0.0.3 | lib/ruroku/resource_sets/collaborator_set.rb |