Module: VoiceML::V1Pageable
- Included in:
- AssistantsV1AssistantList, AssistantsV1FeedbackList, AssistantsV1KnowledgeChunkList, AssistantsV1KnowledgeList, AssistantsV1MessageList, AssistantsV1PolicyList, AssistantsV1SessionList, AssistantsV1ToolList, ConversationsV1ConfigAddressList, ConversationsV1ConversationList, ConversationsV1ConversationMessageList, ConversationsV1ConversationMessageReceiptList, ConversationsV1ConversationParticipantList, ConversationsV1ConversationScopedWebhookList, ConversationsV1CredentialList, ConversationsV1ParticipantConversationList, ConversationsV1RoleList, ConversationsV1ServiceBindingList, ConversationsV1ServiceConversationList, ConversationsV1ServiceConversationMessageList, ConversationsV1ServiceConversationMessageReceiptList, ConversationsV1ServiceConversationParticipantList, ConversationsV1ServiceConversationScopedWebhookList, ConversationsV1ServiceList, ConversationsV1ServiceParticipantConversationList, ConversationsV1ServiceRoleList, ConversationsV1ServiceUserConversationList, ConversationsV1ServiceUserList, ConversationsV1UserConversationList, ConversationsV1UserList, VoiceV1ByocTrunkList, VoiceV1ConnectionPolicyList, VoiceV1ConnectionPolicyTargetList, VoiceV1IpRecordList, VoiceV1SourceIpMappingList
- Defined in:
- lib/voiceml/models/voice_v1.rb
Overview
Shared meta envelope for /v1/* list responses.
Constant Summary collapse
- META_FIELDS =
%w[first_page_url next_page_url previous_page_url url page page_size key].freeze
Instance Method Summary collapse
Instance Method Details
#assign_meta_fields(hash) ⇒ Object
27 28 29 30 |
# File 'lib/voiceml/models/voice_v1.rb', line 27 def (hash) = hash['meta'] || {} META_FIELDS.each { |f| instance_variable_set("@#{f}", [f]) } end |