class Spaceship::Portal::Person
Attributes
@return (String
) Developer status (active, inactive)
@return (String
) Email Address
@return (String
) First name
@return (String
) Joined Date
@return (String
) Last name
@return (String
) Id in Team scope
Public Class Methods
Source
# File spaceship/lib/spaceship/portal/person.rb, line 49 def factory(attrs) begin attrs['dateJoined'] = Time.parse(attrs['dateJoined']) rescue TypeError # Raised if we start getting integer timestamps rescue ArgumentError # Raised if the string's format can't be parsed end return self.new(attrs) end
Public Instance Methods
Source
# File spaceship/lib/spaceship/portal/person.rb, line 44 def change_role(role) client.team_set_role(team_member_id, role) end
Source
# File spaceship/lib/spaceship/portal/person.rb, line 40 def remove! client.team_remove_member!(team_member_id) end