Class: Cadenya::Models::WorkspaceMember

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/workspace_member.rb,
sig/cadenya/models/workspace_member.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(actor_id:, profile_id:, added_at: nil, email: nil, name: nil) ⇒ Object

A member of a workspace: the profile granted access plus the actor row that links it to the workspace. Returned by member list/add operations.

Parameters:

  • actor_id (String)

    The actor row linking the profile to the workspace (the junction record).

  • profile_id (String)

    The account profile that has access to the workspace.

  • added_at (Time) (defaults to: nil)

    When the member was added to the workspace.

  • email (String) (defaults to: nil)

    Email address of the member's profile.

  • name (String) (defaults to: nil)

    Display name of the member's profile.



# File 'lib/cadenya/models/workspace_member.rb', line 38

Instance Attribute Details

#actor_idString

Returns the value of attribute actor_id.

Returns:

  • (String)


13
14
15
# File 'sig/cadenya/models/workspace_member.rbs', line 13

def actor_id
  @actor_id
end

#added_atTime? (readonly)

Returns the value of attribute added_at.

Returns:

  • (Time, nil)


17
18
19
# File 'sig/cadenya/models/workspace_member.rbs', line 17

def added_at
  @added_at
end

#emailString? (readonly)

Returns the value of attribute email.

Returns:

  • (String, nil)


21
22
23
# File 'sig/cadenya/models/workspace_member.rbs', line 21

def email
  @email
end

#nameString? (readonly)

Returns the value of attribute name.

Returns:

  • (String, nil)


25
26
27
# File 'sig/cadenya/models/workspace_member.rbs', line 25

def name
  @name
end

#profile_idString

Returns the value of attribute profile_id.

Returns:

  • (String)


15
16
17
# File 'sig/cadenya/models/workspace_member.rbs', line 15

def profile_id
  @profile_id
end

Instance Method Details

#added_at=Time (readonly)

Parameters:

  • (Time)

Returns:

  • (Time)


19
# File 'sig/cadenya/models/workspace_member.rbs', line 19

def added_at=: (Time) -> Time

#email=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


23
# File 'sig/cadenya/models/workspace_member.rbs', line 23

def email=: (String) -> String

#name=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


27
# File 'sig/cadenya/models/workspace_member.rbs', line 27

def name=: (String) -> String

#to_hash{

Returns:

  • ({)


37
# File 'sig/cadenya/models/workspace_member.rbs', line 37

def to_hash: -> {