Class: GetStream::Generated::Models::HistoryWindowTeam
- Defined in:
- lib/getstream_ruby/generated/models/history_window_team.rb
Overview
A team with full history
Instance Attribute Summary collapse
-
#created_at ⇒ DateTime
Date/time the team was first given full history.
-
#team ⇒ String
The team, as set on channels and users.
-
#updated_at ⇒ DateTime
Date/time the team was last marked.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ HistoryWindowTeam
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ HistoryWindowTeam
Initialize with attributes
23 24 25 26 27 28 |
# File 'lib/getstream_ruby/generated/models/history_window_team.rb', line 23 def initialize(attributes = {}) super(attributes) @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) } @team = attributes.fetch(:team) { attributes.fetch('team', nil) } @updated_at = attributes.fetch(:updated_at) { attributes.fetch('updated_at', nil) } end |
Instance Attribute Details
#created_at ⇒ DateTime
Returns Date/time the team was first given full history.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/history_window_team.rb', line 14 def created_at @created_at end |
#team ⇒ String
Returns The team, as set on channels and users.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/history_window_team.rb', line 17 def team @team end |
#updated_at ⇒ DateTime
Returns Date/time the team was last marked.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/history_window_team.rb', line 20 def updated_at @updated_at end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
31 32 33 34 35 36 37 |
# File 'lib/getstream_ruby/generated/models/history_window_team.rb', line 31 def self.json_field_mappings { created_at: 'created_at', team: 'team', updated_at: 'updated_at' } end |