Class: RubynCode::Teams::Teammate

Inherits:
Data
  • Object
show all
Defined in:
lib/rubyn_code/teams/teammate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



10
11
12
# File 'lib/rubyn_code/teams/teammate.rb', line 10

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



10
11
12
# File 'lib/rubyn_code/teams/teammate.rb', line 10

def id
  @id
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



10
11
12
# File 'lib/rubyn_code/teams/teammate.rb', line 10

def 
  @metadata
end

#modelObject (readonly)

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



10
11
12
# File 'lib/rubyn_code/teams/teammate.rb', line 10

def model
  @model
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



10
11
12
# File 'lib/rubyn_code/teams/teammate.rb', line 10

def name
  @name
end

#personaObject (readonly)

Returns the value of attribute persona

Returns:

  • (Object)

    the current value of persona



10
11
12
# File 'lib/rubyn_code/teams/teammate.rb', line 10

def persona
  @persona
end

#roleObject (readonly)

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



10
11
12
# File 'lib/rubyn_code/teams/teammate.rb', line 10

def role
  @role
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



10
11
12
# File 'lib/rubyn_code/teams/teammate.rb', line 10

def status
  @status
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


17
# File 'lib/rubyn_code/teams/teammate.rb', line 17

def active? = status == 'active'

#idle?Boolean

Returns:

  • (Boolean)


14
# File 'lib/rubyn_code/teams/teammate.rb', line 14

def idle? = status == 'idle'

#offline?Boolean

Returns:

  • (Boolean)


20
# File 'lib/rubyn_code/teams/teammate.rb', line 20

def offline? = status == 'offline'

#to_hHash

Returns:

  • (Hash)


23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/rubyn_code/teams/teammate.rb', line 23

def to_h
  {
    id: id,
    name: name,
    role: role,
    persona: persona,
    model: model,
    status: status,
    metadata: ,
    created_at: created_at
  }
end