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.129.0.beta.20190729200106 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.129.0.beta.20190728200052 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.129.0.beta.20190727200032 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.129.0.beta.20190726200041 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.1 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.129.0.beta.20190725200033 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.129.0.beta.20190723200012 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0.beta.20190722200021 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0.beta.20190721200024 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0.beta.20190720200049 spaceship/lib/spaceship/tunes/members.rb
fastlane_iac_publish-0.1.5 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.127.2 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0.beta.20190719200019 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0.beta.20190718200101 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0.beta.20190717200026 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0.beta.20190716200022 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0.beta.20190715200056 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0.beta.20190714200028 spaceship/lib/spaceship/tunes/members.rb
fastlane-2.128.0.beta.20190713200107 spaceship/lib/spaceship/tunes/members.rb