Class: GetStream::Generated::Models::QueryFeedsUsageStatsResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::QueryFeedsUsageStatsResponse
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 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
17
18
19
|
# File 'lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb', line 17
def activities
@activities
end
|
20
21
22
|
# File 'lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb', line 20
def api_requests
@api_requests
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb', line 23
def collections
@collections
end
|
26
27
28
|
# File 'lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb', line 26
def
@comments
end
|
#duration ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb', line 14
def duration
@duration
end
|
38
39
40
|
# File 'lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb', line 38
def emau
@emau
end
|
29
30
31
|
# File 'lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb', line 29
def follows
@follows
end
|
32
33
34
|
# File 'lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb', line 32
def openai_requests
@openai_requests
end
|
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
|