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
tsenart-pivotal-tracker-0.4.0 lib/pivotal-tracker/membership.rb
topprospect-pivotal-tracker-0.1.1 lib/pivotal-tracker/membership.rb
topprospect-pivotal-tracker-0.0.1 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.3.1 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.3.0 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.2.2 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.2.1 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.2.0 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.1.3 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.1.2 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.1.1 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.1.0.1 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.1.0 lib/pivotal-tracker/membership.rb
pivotal-tracker-0.0.9.1 lib/pivotal-tracker/membership.rb