Class: Cerca::Models::Entry

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cerca/models/entry.rb

Overview

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(content:, key:, updated_at:, version:, mime_type: nil) ⇒ Object

Parameters:

  • content (String)
  • key (String)
  • updated_at (String)
  • version (Float)
  • mime_type (String) (defaults to: nil)


# File 'lib/cerca/models/entry.rb', line 32

Instance Attribute Details

#contentString

Returns:

  • (String)


10
# File 'lib/cerca/models/entry.rb', line 10

required :content, String

#keyString

Returns:

  • (String)


15
# File 'lib/cerca/models/entry.rb', line 15

required :key, String

#mime_typeString?

Returns:

  • (String, nil)


30
# File 'lib/cerca/models/entry.rb', line 30

optional :mime_type, String, api_name: :mimeType

#updated_atString

Returns:

  • (String)


20
# File 'lib/cerca/models/entry.rb', line 20

required :updated_at, String, api_name: :updatedAt

#versionFloat

Returns:

  • (Float)


25
# File 'lib/cerca/models/entry.rb', line 25

required :version, Float