Class: GetStream::Generated::Models::QueryFeedsUsageStatsResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.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 = {}) ⇒ QueryFeedsUsageStatsResponse

Initialize with attributes



41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb', line 41

def initialize(attributes = {})
  super(attributes)
  @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
  @activities = attributes.fetch(:activities) { attributes.fetch('activities', nil) }
  @api_requests = attributes.fetch(:api_requests) { attributes.fetch('api_requests', nil) }
  @collections = attributes.fetch(:collections) { attributes.fetch('collections', nil) }
  @comments = attributes.fetch(:comments) { attributes.fetch('comments', nil) }
  @follows = attributes.fetch(:follows) { attributes.fetch('follows', nil) }
  @openai_requests = attributes.fetch(:openai_requests) { attributes.fetch('openai_requests', nil) }
  @reactions = attributes.fetch(:reactions) { attributes.fetch('reactions', nil) }
  @emau = attributes.fetch(:emau) { attributes.fetch('emau', nil) }
end

Instance Attribute Details

#activities ⇒ DailyMetricStatsResponse



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

def activities
  @activities
end

#api_requests ⇒ DailyMetricStatsResponse



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

def api_requests
  @api_requests
end

#collections ⇒ DailyMetricStatsResponse



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

def collections
  @collections
end

#comments ⇒ DailyMetricStatsResponse



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

def comments
  @comments
end

#duration ⇒ String

Returns:

  • (String)


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

def duration
  @duration
end

#emau ⇒ EMAUStatsResponse

Returns:



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

def emau
  @emau
end

#follows ⇒ DailyMetricStatsResponse



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

def follows
  @follows
end

#openai_requests ⇒ DailyMetricStatsResponse



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

def openai_requests
  @openai_requests
end

#reactions ⇒ DailyMetricStatsResponse



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

def reactions
  @reactions
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb', line 55

def self.json_field_mappings
  {
    duration: 'duration',
    activities: 'activities',
    api_requests: 'api_requests',
    collections: 'collections',
    comments: 'comments',
    follows: 'follows',
    openai_requests: 'openai_requests',
    reactions: 'reactions',
    emau: 'emau'
  }
end