Class: GetStream::Generated::Models::EnrichmentOptions

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/enrichment_options.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ EnrichmentOptions

Initialize with attributes



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 65

def initialize(attributes = {})
  super(attributes)
  @skip_activity = attributes[:skip_activity] || attributes['skip_activity'] || nil
  @skip_activity_collections = attributes[:skip_activity_collections] || attributes['skip_activity_collections'] || nil
  @skip_activity_comments = attributes[:skip_activity_comments] || attributes['skip_activity_comments'] || nil
  @skip_activity_current_feed = attributes[:skip_activity_current_feed] || attributes['skip_activity_current_feed'] || nil
  @skip_activity_mentioned_users = attributes[:skip_activity_mentioned_users] || attributes['skip_activity_mentioned_users'] || nil
  @skip_activity_own_bookmarks = attributes[:skip_activity_own_bookmarks] || attributes['skip_activity_own_bookmarks'] || nil
  @skip_activity_parents = attributes[:skip_activity_parents] || attributes['skip_activity_parents'] || nil
  @skip_activity_poll = attributes[:skip_activity_poll] || attributes['skip_activity_poll'] || nil
  @skip_activity_reactions = attributes[:skip_activity_reactions] || attributes['skip_activity_reactions'] || nil
  @skip_activity_refresh_image_urls = attributes[:skip_activity_refresh_image_urls] || attributes['skip_activity_refresh_image_urls'] || nil
  @skip_all = attributes[:skip_all] || attributes['skip_all'] || nil
  @skip_feed_member_user = attributes[:skip_feed_member_user] || attributes['skip_feed_member_user'] || nil
  @skip_followers = attributes[:skip_followers] || attributes['skip_followers'] || nil
  @skip_following = attributes[:skip_following] || attributes['skip_following'] || nil
  @skip_own_capabilities = attributes[:skip_own_capabilities] || attributes['skip_own_capabilities'] || nil
  @skip_own_follows = attributes[:skip_own_follows] || attributes['skip_own_follows'] || nil
  @skip_pins = attributes[:skip_pins] || attributes['skip_pins'] || nil
end

Instance Attribute Details

#skip_activityBoolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 14

def skip_activity
  @skip_activity
end

#skip_activity_collectionsBoolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 17

def skip_activity_collections
  @skip_activity_collections
end

#skip_activity_commentsBoolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 20

def skip_activity_comments
  @skip_activity_comments
end

#skip_activity_current_feedBoolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 23

def skip_activity_current_feed
  @skip_activity_current_feed
end

#skip_activity_mentioned_usersBoolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 26

def skip_activity_mentioned_users
  @skip_activity_mentioned_users
end

#skip_activity_own_bookmarksBoolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 29

def skip_activity_own_bookmarks
  @skip_activity_own_bookmarks
end

#skip_activity_parentsBoolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 32

def skip_activity_parents
  @skip_activity_parents
end

#skip_activity_pollBoolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 35

def skip_activity_poll
  @skip_activity_poll
end

#skip_activity_reactionsBoolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 38

def skip_activity_reactions
  @skip_activity_reactions
end

#skip_activity_refresh_image_urlsBoolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 41

def skip_activity_refresh_image_urls
  @skip_activity_refresh_image_urls
end

#skip_allBoolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 44

def skip_all
  @skip_all
end

#skip_feed_member_userBoolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 47

def skip_feed_member_user
  @skip_feed_member_user
end

#skip_followersBoolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 50

def skip_followers
  @skip_followers
end

#skip_followingBoolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 53

def skip_following
  @skip_following
end

#skip_own_capabilitiesBoolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 56

def skip_own_capabilities
  @skip_own_capabilities
end

#skip_own_followsBoolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 59

def skip_own_follows
  @skip_own_follows
end

#skip_pinsBoolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 62

def skip_pins
  @skip_pins
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/getstream_ruby/generated/models/enrichment_options.rb', line 87

def self.json_field_mappings
  {
    skip_activity: 'skip_activity',
    skip_activity_collections: 'skip_activity_collections',
    skip_activity_comments: 'skip_activity_comments',
    skip_activity_current_feed: 'skip_activity_current_feed',
    skip_activity_mentioned_users: 'skip_activity_mentioned_users',
    skip_activity_own_bookmarks: 'skip_activity_own_bookmarks',
    skip_activity_parents: 'skip_activity_parents',
    skip_activity_poll: 'skip_activity_poll',
    skip_activity_reactions: 'skip_activity_reactions',
    skip_activity_refresh_image_urls: 'skip_activity_refresh_image_urls',
    skip_all: 'skip_all',
    skip_feed_member_user: 'skip_feed_member_user',
    skip_followers: 'skip_followers',
    skip_following: 'skip_following',
    skip_own_capabilities: 'skip_own_capabilities',
    skip_own_follows: 'skip_own_follows',
    skip_pins: 'skip_pins'
  }
end