Class: ModerationAPI::Models::AccountListResponse::CurrentProject

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

Overview

See Also:

  • ModerationAPI::Models::AccountListResponse#current_project

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:, name:) ⇒ CurrentProject

Returns a new instance of CurrentProject.

Parameters:

  • id (String)

    ID of the current project

  • name (String)

    Name of the current project

  • id: (String)
  • name: (String)


# File 'lib/moderation_api/models/account_list_response.rb', line 61

Instance Attribute Details

#idString

ID of the current project

Parameters:

  • value (String)

Returns:

  • (String)


53
# File 'lib/moderation_api/models/account_list_response.rb', line 53

required :id, String

#nameString

Name of the current project

Parameters:

  • value (String)

Returns:

  • (String)


59
# File 'lib/moderation_api/models/account_list_response.rb', line 59

required :name, String

Instance Method Details

#to_hash{ id: String, name: String }

Returns:

  • ({ id: String, name: String })


52
# File 'sig/moderation_api/models/account_list_response.rbs', line 52

def to_hash: -> { id: String, name: String }