Sha256: 0cf8aeea79dfa73c95d6aae209f7287a7b34c81d17e2493f822bf0ded875c2f2

Contents?: true

Size: 941 Bytes

Versions: 587

Compression:

Stored size: 941 Bytes

Contents

require_relative 'member'

module Spaceship
  module Tunes
    class Members < TunesBase
      class << self
        def all
          response = client.members
          return_members = []
          response.each  do |member|
            return_members << Tunes::Member.factory(member)
          end
          return_members
        end

        def find(email)
          all.each do |member|
            if member.email_address == email
              return member
            end
          end
          return nil
        end

        def create!(firstname: nil, lastname: nil, email_address: nil, roles: [], apps: [])
          client.create_member!(firstname: firstname, lastname: lastname, email_address: email_address, roles: roles, apps: apps)
        end

        def update_member_roles!(member, roles: [], apps: [])
          client.update_member_roles!(member, roles: roles, apps: apps)
        end
      end
    end
  end
end

Version data entries

587 entries across 587 versions & 2 rubygems

Version Path
fastlane-2.93.0.beta.20180418050020 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.92.1 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.93.0.beta.20180417050013 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.92.0 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.92.0.beta.20180416050023 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.92.0.beta.20180415050019 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.92.0.beta.20180414050023 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.91.0 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.91.0.beta.20180413050017 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0.beta.20180412050111 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0.beta.20180411050056 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0.beta.20180410050128 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0.beta.20180409050033 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0.beta.20180408050113 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0.beta.20180407050037 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0.beta.20180406050006 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0.beta.20180405050125 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0.beta.20180404050031 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.90.0.beta.20180403050108 spaceship/lib/spaceship/tunes/members.rb