Class: Knockapi::Models::Users::GuideGetChannelResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/knockapi/models/users/guide_get_channel_response.rb

Overview

Defined Under Namespace

Classes: Entry, GuideGroup

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: nil, archived_at: nil, interacted_at: nil, link_clicked_at: nil, read_at: nil, seen_at: nil) ⇒ Object

Parameters:

  • id (String, nil) (defaults to: nil)
  • archived_at (Time, nil) (defaults to: nil)
  • interacted_at (Time, nil) (defaults to: nil)
  • link_clicked_at (Time, nil) (defaults to: nil)
  • read_at (Time, nil) (defaults to: nil)
  • seen_at (Time, nil) (defaults to: nil)


# File 'lib/knockapi/models/users/guide_get_channel_response.rb', line 270


Instance Attribute Details

#entriesArray<Knockapi::Models::Users::GuideGetChannelResponse::Entry>

A list of guides.



12
13
# File 'lib/knockapi/models/users/guide_get_channel_response.rb', line 12

required :entries,
-> { Knockapi::Internal::Type::ArrayOf[Knockapi::Models::Users::GuideGetChannelResponse::Entry] }

#guide_group_display_logsHash{Symbol=>Time}

A map of guide group keys to their last display timestamps.

Returns:

  • (Hash{Symbol=>Time})


19
# File 'lib/knockapi/models/users/guide_get_channel_response.rb', line 19

required :guide_group_display_logs, Knockapi::Internal::Type::HashOf[Time]

#guide_groupsArray<Knockapi::Models::Users::GuideGetChannelResponse::GuideGroup>

A list of guide groups with their display sequences and intervals.



25
26
# File 'lib/knockapi/models/users/guide_get_channel_response.rb', line 25

required :guide_groups,
-> { Knockapi::Internal::Type::ArrayOf[Knockapi::Models::Users::GuideGetChannelResponse::GuideGroup] }