Class: Openlayer::Models::Workspaces::InviteListResponse::Item::Workspace

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/workspaces/invite_list_response.rb,
sig/openlayer/models/workspaces/invite_list_response.rbs

Overview

See Also:

  • Openlayer::Models::Workspaces::InviteListResponse::Item#workspace

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(id:, date_created:, member_count:, name:, slug:) ⇒ Object

Parameters:

  • id (String)
  • date_created (Time)
  • member_count (Integer)
  • name (String)
  • slug (String)


# File 'lib/openlayer/models/workspaces/invite_list_response.rb', line 161

Instance Attribute Details

#date_createdTime

Returns the value of attribute date_created.

Returns:

  • (Time)


125
126
127
# File 'sig/openlayer/models/workspaces/invite_list_response.rbs', line 125

def date_created
  @date_created
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


123
124
125
# File 'sig/openlayer/models/workspaces/invite_list_response.rbs', line 123

def id
  @id
end

#member_countInteger

Returns the value of attribute member_count.

Returns:

  • (Integer)


127
128
129
# File 'sig/openlayer/models/workspaces/invite_list_response.rbs', line 127

def member_count
  @member_count
end

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


137
# File 'lib/openlayer/models/workspaces/invite_list_response.rb', line 137

required :name, String

#slugString

Parameters:

  • value (String)

Returns:

  • (String)


142
# File 'lib/openlayer/models/workspaces/invite_list_response.rb', line 142

required :slug, String

Instance Method Details

#to_hash{

Returns:

  • ({)


137
# File 'sig/openlayer/models/workspaces/invite_list_response.rbs', line 137

def to_hash: -> {