Class: Orb::Models::Item

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/item.rb

Overview

Defined Under Namespace

Classes: ExternalConnection

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Orb::Internal::Type::BaseModel

Instance Attribute Details

#created_atTime

Returns:

  • (Time)


15
# File 'lib/orb/models/item.rb', line 15

required :created_at, Time

#external_connectionsArray<Orb::Models::Item::ExternalConnection>



20
# File 'lib/orb/models/item.rb', line 20

required :external_connections, -> { Orb::Internal::Type::ArrayOf[Orb::Item::ExternalConnection] }

#idString

Returns:

  • (String)


10
# File 'lib/orb/models/item.rb', line 10

required :id, String

#metadataHash{Symbol=>String}

User specified key-value pairs for the resource. If not present, this defaults to an empty dictionary. Individual keys can be removed by setting the value to ‘null`, and the entire metadata mapping can be cleared by setting `metadata` to `null`.

Returns:

  • (Hash{Symbol=>String})


29
# File 'lib/orb/models/item.rb', line 29

required :metadata, Orb::Internal::Type::HashOf[String]

#nameString

Returns:

  • (String)


34
# File 'lib/orb/models/item.rb', line 34

required :name, String