Class: Openlayer::Models::ProjectListResponse::Item::GitRepo

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

Overview

See Also:

  • Openlayer::Models::ProjectListResponse::Item#git_repo

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_connected:, date_updated:, git_account_id:, git_id:, name:, private:, project_id:, slug:, url:, branch: nil, root_dir: nil) ⇒ Object

Parameters:

  • id (String)
  • date_connected (Time)
  • date_updated (Time)
  • git_account_id (String)
  • git_id (Integer)
  • name (String)
  • private (Boolean)
  • project_id (String)
  • slug (String)
  • url (String)
  • branch (String) (defaults to: nil)
  • root_dir (String) (defaults to: nil)


# File 'lib/openlayer/models/project_list_response.rb', line 257

Instance Attribute Details

#branchString?

Parameters:

  • (String)

Returns:

  • (String, nil)


208
# File 'lib/openlayer/models/project_list_response.rb', line 208

optional :branch, String

#date_connectedTime

Returns the value of attribute date_connected.

Returns:

  • (Time)


178
179
180
# File 'sig/openlayer/models/project_list_response.rbs', line 178

def date_connected
  @date_connected
end

#date_updatedTime

Returns the value of attribute date_updated.

Returns:

  • (Time)


180
181
182
# File 'sig/openlayer/models/project_list_response.rbs', line 180

def date_updated
  @date_updated
end

#git_account_idString

Parameters:

  • value (String)

Returns:

  • (String)


198
# File 'lib/openlayer/models/project_list_response.rb', line 198

required :git_account_id, String, api_name: :gitAccountId

#git_idInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


203
# File 'lib/openlayer/models/project_list_response.rb', line 203

required :git_id, Integer, api_name: :gitId

#idString

Returns the value of attribute id.

Returns:

  • (String)


176
177
178
# File 'sig/openlayer/models/project_list_response.rbs', line 176

def id
  @id
end

#nameString

Returns the value of attribute name.

Returns:

  • (String)


182
183
184
# File 'sig/openlayer/models/project_list_response.rbs', line 182

def name
  @name
end

#privateBoolean

Returns the value of attribute private.

Returns:

  • (Boolean)


184
185
186
# File 'sig/openlayer/models/project_list_response.rbs', line 184

def private
  @private
end

#project_idString

Returns the value of attribute project_id.

Returns:

  • (String)


186
187
188
# File 'sig/openlayer/models/project_list_response.rbs', line 186

def project_id
  @project_id
end

#root_dirString?

Parameters:

  • (String)

Returns:

  • (String, nil)


213
# File 'lib/openlayer/models/project_list_response.rb', line 213

optional :root_dir, String, api_name: :rootDir

#slugString

Returns the value of attribute slug.

Returns:

  • (String)


188
189
190
# File 'sig/openlayer/models/project_list_response.rbs', line 188

def slug
  @slug
end

#urlString

Returns the value of attribute url.

Returns:

  • (String)


190
191
192
# File 'sig/openlayer/models/project_list_response.rbs', line 190

def url
  @url
end

Instance Method Details

#to_hash{

Returns:

  • ({)


207
# File 'sig/openlayer/models/project_list_response.rbs', line 207

def to_hash: -> {