Class: Pubnub::GetAllUuidMetadata
- Inherits:
-
SingleEvent
- Object
- Event
- SingleEvent
- Pubnub::GetAllUuidMetadata
- Includes:
- Concurrent::Async, Validator::GetAllUuidMetadata
- Defined in:
- lib/pubnub/events/get_all_uuid_metadata.rb
Overview
Holds GetAllUuidMetadata functionality
Instance Attribute Summary
Attributes inherited from Event
#callback, #channel, #channel_group, #fresh_clone, #given_options, #group, #idle_timeout, #open_timeout, #origin, #presence_callback, #read_timeout, #ssl, #state, #wildcard_channel, #with_presence
Instance Method Summary collapse
-
#initialize(options, app) ⇒ GetAllUuidMetadata
constructor
A new instance of GetAllUuidMetadata.
Methods included from Validator::GetAllUuidMetadata
Methods included from Validator::CommonValidator
#validate_origin, #validate_publish_key, #validate_subscribe_key, #validate_user_id
Methods inherited from Event
#finalized?, #fire, #send_request, #sync?, #uri
Methods included from Event::EFormatter
#format_channels, #format_envelopes, #format_group
Constructor Details
#initialize(options, app) ⇒ GetAllUuidMetadata
Returns a new instance of GetAllUuidMetadata.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/pubnub/events/get_all_uuid_metadata.rb', line 10 def initialize(, app) @event = current_operation @telemetry_name = :l_obj @limit = [[:limit], 100].min unless [:limit].nil? @sort = [:sort].join(",") if [:sort] && ![:sort].empty? @filter = [:filter] if [:filter] && ![:filter].empty? @start = [:start] if [:start] && ![:start].empty? @end = [:end] if [:start] && ![:end].empty? if [:include] @include_count = [0, '0', false].include?([:include][:count]) ? "0" : "1" unless [:include][:count].nil? @include = "custom" unless [0, '0', false].include?([:include][:custom]) end # Collections by default return number of available entries. @include_count = "1" if @include_count.nil? super end |