Class: GetStream::Generated::Models::FollowBatchRequest
- Defined in:
- lib/getstream_ruby/generated/models/follow_batch_request.rb
Instance Attribute Summary collapse
-
#follows ⇒ Array<FollowRequest>
List of follow relationships to create.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FollowBatchRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FollowBatchRequest
Initialize with attributes
17 18 19 20 |
# File 'lib/getstream_ruby/generated/models/follow_batch_request.rb', line 17 def initialize(attributes = {}) super(attributes) @follows = attributes[:follows] || attributes['follows'] end |
Instance Attribute Details
#follows ⇒ Array<FollowRequest>
Returns List of follow relationships to create.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/follow_batch_request.rb', line 14 def follows @follows end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
23 24 25 26 27 |
# File 'lib/getstream_ruby/generated/models/follow_batch_request.rb', line 23 def self.json_field_mappings { follows: 'follows' } end |