Sha256: de551409c820723eb7c4f212d596ed477c6234c1b9b21763a96880fd72e9827f

Contents?: true

Size: 458 Bytes

Versions: 34

Compression:

Stored size: 458 Bytes

Contents

module PivotalTracker
  class Membership
    include HappyMapper

    class << self
      def all(project, options={})
        parse(Client.connection["/projects/#{project.id}/memberships"].get)
      end
    end

    element :id, Integer
    element :role, String

    # Flattened Attributes from <person>...</person>
    element :name, String, :deep => true
    element :email, String, :deep => true
    element :initials, String, :deep => true

  end
end

Version data entries

34 entries across 34 versions & 5 rubygems

Version Path
lrd-pivotal-tracker-0.5.14 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.13 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.12 lib/pivotal-tracker/membership.rb
pivotal-tracker-fox-0.5.13 lib/pivotal-tracker/membership.rb
pivotal-tracker-fox-0.5.12 lib/pivotal-tracker/membership.rb
pivotal-tracker-fox-0.5.11 lib/pivotal-tracker/membership.rb
pivotal-tracker-fox-0.5.10 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.10 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.9 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.8 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.7 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.6 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.5 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.4 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.3 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.1 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.5.0 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.4.1 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.4.0 lib/pivotal-tracker/membership.rb
tsenart-pivotal-tracker-0.5.0 lib/pivotal-tracker/membership.rb