Sha256: 38a205d3efa444b4ee9a463ed4a3676fc1810188ce9e47bba69a6b87c3b539b2

Contents?: true

Size: 1.12 KB

Versions: 242

Compression:

Stored size: 1.12 KB

Contents

module Spaceship
  module Portal
    class Person < PortalBase
      # @return (String) Person Id
      attr_accessor :person_id

      # @return (String) First name
      attr_accessor :firstname

      # @return (String) Last name
      attr_accessor :lastname

      # @return (String) Email Address
      attr_accessor :email_address

      # @return (String) Developer status (active, inactive)
      attr_accessor :developer_status

      # @return (String) Joined Date
      attr_accessor :joined

      # @return (String) Id in Team scope
      attr_accessor :team_member_id

      # @return (String) Role (member, admin or agent)
      attr_accessor :type

      attr_mapping(
        'personId' => :person_id,
        'firstName' => :firstname,
        'lastName' => :lastname,
        'email' => :email_address,
        'developerStatus' => :developer_status,
        'dateJoined' => :joined,
        'teamMemberId' => :team_member_id
      )

      def remove!
        client.team_remove_member!(team_member_id)
      end

      def change_role(role)
        client.team_set_role(team_member_id, role)
      end
    end
  end
end

Version data entries

242 entries across 242 versions & 1 rubygems

Version Path
fastlane-2.52.0.beta.20170808010002 spaceship/lib/spaceship/portal/person.rb
fastlane-2.51.0 spaceship/lib/spaceship/portal/person.rb
fastlane-2.51.0.beta.20170807010003 spaceship/lib/spaceship/portal/person.rb
fastlane-2.51.0.beta.20170806010003 spaceship/lib/spaceship/portal/person.rb
fastlane-2.51.0.beta.20170805010003 spaceship/lib/spaceship/portal/person.rb
fastlane-2.51.0.beta.20170804010003 spaceship/lib/spaceship/portal/person.rb
fastlane-2.51.0.beta.20170803010003 spaceship/lib/spaceship/portal/person.rb
fastlane-2.50.1 spaceship/lib/spaceship/portal/person.rb
fastlane-2.51.0.beta.20170802010003 spaceship/lib/spaceship/portal/person.rb
fastlane-2.51.0.beta.20170801010002 spaceship/lib/spaceship/portal/person.rb
fastlane-2.50.0 spaceship/lib/spaceship/portal/person.rb
fastlane-2.50.0.beta.20170731010002 spaceship/lib/spaceship/portal/person.rb
fastlane-2.50.0.beta.20170730010002 spaceship/lib/spaceship/portal/person.rb
fastlane-2.50.0.beta.20170729010003 spaceship/lib/spaceship/portal/person.rb
fastlane-2.50.0.beta.20170728010002 spaceship/lib/spaceship/portal/person.rb
fastlane-2.50.0.beta.20170727010003 spaceship/lib/spaceship/portal/person.rb
fastlane-2.49.0 spaceship/lib/spaceship/portal/person.rb
fastlane-2.49.0.beta.20170726010003 spaceship/lib/spaceship/portal/person.rb
fastlane-2.49.0.beta.20170725010003 spaceship/lib/spaceship/portal/person.rb
fastlane-2.48.0 spaceship/lib/spaceship/portal/person.rb