class Spaceship::Portal::Person
Attributes
developer_status[RW]
@return (String
) Developer status (active, inactive)
email_address[RW]
@return (String
) Email Address
firstname[RW]
@return (String
) First name
joined[RW]
@return (String
) Joined Date
lastname[RW]
@return (String
) Last name
team_member_id[RW]
@return (String
) Id in Team scope
type[RW]
@return (String
) Role (member, admin or agent)
Public Class Methods
factory(attrs)
click to toggle 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
change_role(role)
click to toggle source
# File spaceship/lib/spaceship/portal/person.rb, line 44 def change_role(role) client.team_set_role(team_member_id, role) end
remove!()
click to toggle source
# File spaceship/lib/spaceship/portal/person.rb, line 40 def remove! client.team_remove_member!(team_member_id) end