Class: GetStream::Generated::Models::BookmarkResponse
- Defined in:
- lib/getstream_ruby/generated/models/bookmark_response.rb
Instance Attribute Summary collapse
- #activity ⇒ ActivityResponse
-
#created_at ⇒ DateTime
When the bookmark was created.
-
#custom ⇒ Object
Custom data for the bookmark.
- #folder ⇒ BookmarkFolderResponse
-
#updated_at ⇒ DateTime
When the bookmark was last updated.
- #user ⇒ UserResponse
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ BookmarkResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ BookmarkResponse
Initialize with attributes
32 33 34 35 36 37 38 39 40 |
# File 'lib/getstream_ruby/generated/models/bookmark_response.rb', line 32 def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @activity = attributes[:activity] || attributes['activity'] @user = attributes[:user] || attributes['user'] @custom = attributes[:custom] || attributes['custom'] || nil @folder = attributes[:folder] || attributes['folder'] || nil end |
Instance Attribute Details
#activity ⇒ ActivityResponse
20 21 22 |
# File 'lib/getstream_ruby/generated/models/bookmark_response.rb', line 20 def activity @activity end |
#created_at ⇒ DateTime
Returns When the bookmark was created.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/bookmark_response.rb', line 14 def created_at @created_at end |
#custom ⇒ Object
Returns Custom data for the bookmark.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/bookmark_response.rb', line 26 def custom @custom end |
#folder ⇒ BookmarkFolderResponse
29 30 31 |
# File 'lib/getstream_ruby/generated/models/bookmark_response.rb', line 29 def folder @folder end |
#updated_at ⇒ DateTime
Returns When the bookmark was last updated.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/bookmark_response.rb', line 17 def updated_at @updated_at end |
#user ⇒ UserResponse
23 24 25 |
# File 'lib/getstream_ruby/generated/models/bookmark_response.rb', line 23 def user @user end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/bookmark_response.rb', line 43 def self.json_field_mappings { created_at: 'created_at', updated_at: 'updated_at', activity: 'activity', user: 'user', custom: 'custom', folder: 'folder' } end |