Class: Inttegro::Application::LookedUp

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/app/looked_up.rb

Overview

Typed representation of the looked up object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#alias ⇒ String? (readonly)

Value of the alias field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: alias.

Returns:

  • (String, nil)


59
60
61
62
63
64
65
66
67
# File 'lib/inttegro/app/looked_up.rb', line 59

class LookedUp < T::Struct
  const :id, String
  const :name, String
  const :alias, T.nilable(String), default: nil
  const :description, T.nilable(String), default: nil
  const :created_at, Time
  const :updated_at, T.nilable(Time), default: nil
  const :archived_at, T.nilable(Time), default: nil
end

#archived_at ⇒ Time? (readonly)

Value of the archived_at field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: archived_at.

Returns:

  • (Time, nil)


59
60
61
62
63
64
65
66
67
# File 'lib/inttegro/app/looked_up.rb', line 59

class LookedUp < T::Struct
  const :id, String
  const :name, String
  const :alias, T.nilable(String), default: nil
  const :description, T.nilable(String), default: nil
  const :created_at, Time
  const :updated_at, T.nilable(Time), default: nil
  const :archived_at, T.nilable(Time), default: nil
end

#created_at ⇒ Time (readonly)

Value of the created_at field in the Inttegro API payload.

Required in the API payload. Wire name: created_at.

Returns:

  • (Time)


59
60
61
62
63
64
65
66
67
# File 'lib/inttegro/app/looked_up.rb', line 59

class LookedUp < T::Struct
  const :id, String
  const :name, String
  const :alias, T.nilable(String), default: nil
  const :description, T.nilable(String), default: nil
  const :created_at, Time
  const :updated_at, T.nilable(Time), default: nil
  const :archived_at, T.nilable(Time), default: nil
end

#description ⇒ String? (readonly)

Value of the description field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: description.

Returns:

  • (String, nil)


59
60
61
62
63
64
65
66
67
# File 'lib/inttegro/app/looked_up.rb', line 59

class LookedUp < T::Struct
  const :id, String
  const :name, String
  const :alias, T.nilable(String), default: nil
  const :description, T.nilable(String), default: nil
  const :created_at, Time
  const :updated_at, T.nilable(Time), default: nil
  const :archived_at, T.nilable(Time), default: nil
end

#id ⇒ String (readonly)

Value of the id field in the Inttegro API payload.

Required in the API payload. Wire name: id.

Returns:

  • (String)


59
60
61
62
63
64
65
66
67
# File 'lib/inttegro/app/looked_up.rb', line 59

class LookedUp < T::Struct
  const :id, String
  const :name, String
  const :alias, T.nilable(String), default: nil
  const :description, T.nilable(String), default: nil
  const :created_at, Time
  const :updated_at, T.nilable(Time), default: nil
  const :archived_at, T.nilable(Time), default: nil
end

#name ⇒ String (readonly)

Value of the name field in the Inttegro API payload.

Required in the API payload. Wire name: name.

Returns:

  • (String)


59
60
61
62
63
64
65
66
67
# File 'lib/inttegro/app/looked_up.rb', line 59

class LookedUp < T::Struct
  const :id, String
  const :name, String
  const :alias, T.nilable(String), default: nil
  const :description, T.nilable(String), default: nil
  const :created_at, Time
  const :updated_at, T.nilable(Time), default: nil
  const :archived_at, T.nilable(Time), default: nil
end

#updated_at ⇒ Time? (readonly)

Value of the updated_at field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: updated_at.

Returns:

  • (Time, nil)


59
60
61
62
63
64
65
66
67
# File 'lib/inttegro/app/looked_up.rb', line 59

class LookedUp < T::Struct
  const :id, String
  const :name, String
  const :alias, T.nilable(String), default: nil
  const :description, T.nilable(String), default: nil
  const :created_at, Time
  const :updated_at, T.nilable(Time), default: nil
  const :archived_at, T.nilable(Time), default: nil
end