Class: GetStream::Generated::Models::AddBookmarkRequest
- Defined in:
- lib/getstream_ruby/generated/models/add_bookmark_request.rb
Instance Attribute Summary collapse
-
#custom ⇒ Object
Custom data for the bookmark.
-
#folder_id ⇒ String
ID of the folder to add the bookmark to.
- #new_folder ⇒ AddFolderRequest
- #user ⇒ UserRequest
- #user_id ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AddBookmarkRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ AddBookmarkRequest
Initialize with attributes
29 30 31 32 33 34 35 36 |
# File 'lib/getstream_ruby/generated/models/add_bookmark_request.rb', line 29 def initialize(attributes = {}) super(attributes) @folder_id = attributes[:folder_id] || attributes['folder_id'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @new_folder = attributes[:new_folder] || attributes['new_folder'] || nil @user = attributes[:user] || attributes['user'] || nil end |
Instance Attribute Details
#custom ⇒ Object
20 21 22 |
# File 'lib/getstream_ruby/generated/models/add_bookmark_request.rb', line 20 def custom @custom end |
#folder_id ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/add_bookmark_request.rb', line 14 def folder_id @folder_id end |
#new_folder ⇒ AddFolderRequest
23 24 25 |
# File 'lib/getstream_ruby/generated/models/add_bookmark_request.rb', line 23 def new_folder @new_folder end |
#user ⇒ UserRequest
26 27 28 |
# File 'lib/getstream_ruby/generated/models/add_bookmark_request.rb', line 26 def user @user end |
#user_id ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/add_bookmark_request.rb', line 17 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/models/add_bookmark_request.rb', line 39 def self.json_field_mappings { folder_id: 'folder_id', user_id: 'user_id', custom: 'custom', new_folder: 'new_folder', user: 'user' } end |