Class: Qismo::Object
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Qismo::Object
- Includes:
- Types
- Defined in:
- lib/qismo/object.rb
Overview
Object interface
Direct Known Subclasses
Qismo::Objects::AdminProfile, Qismo::Objects::AgentService, Qismo::Objects::BroadcastJob, Qismo::Objects::BroadcastJob::User, Qismo::Objects::BroadcastLog, Qismo::Objects::CustomChannel, Qismo::Objects::CustomChannelMessageResponse, Qismo::Objects::CustomerRoom, Qismo::Objects::FbChannel, Qismo::Objects::HsmTemplate, Qismo::Objects::HsmTemplate::HsmDetail, Qismo::Objects::HsmTemplate::HsmDetail::Button, Qismo::Objects::IgChannel, Qismo::Objects::LineChannel, Qismo::Objects::ListChannelsResponse, Qismo::Objects::OfficeHour, Qismo::Objects::OfficeHour::OfficeHourElement, Qismo::Objects::QiscusChannel, Qismo::Objects::RoomAdditionalInfo, Qismo::Objects::Tag, Qismo::Objects::TelegramChannel, Qismo::Objects::User, Qismo::Objects::User::Channel, Qismo::Objects::User::Role, Qismo::Objects::WaChannel, Qismo::Objects::WaCreditInfo, Qismo::Objects::WaCreditInfo::Channel, Qismo::Objects::WaCreditInfo::Channel::LastPayment, Qismo::Objects::WacaChannel, Qismo::Objects::Webhook, WebhookRequests::OnAgentAllocationNeeded, WebhookRequests::OnAgentAllocationNeeded::CandidateAgent, WebhookRequests::OnCustomButtonClicked, WebhookRequests::OnCustomButtonClicked::AdditionalInfo, WebhookRequests::OnCustomButtonClicked::Agent, WebhookRequests::OnCustomButtonClicked::Customer, WebhookRequests::OnCustomButtonClicked::Tag, WebhookRequests::OnCustomChannelMessageSent, WebhookRequests::OnCustomChannelMessageSent::From, WebhookRequests::OnCustomChannelMessageSent::Message, WebhookRequests::OnCustomChannelMessageSent::Participant, WebhookRequests::OnCustomChannelMessageSent::Payload, WebhookRequests::OnCustomChannelMessageSent::Room, WebhookRequests::OnMessageForBotSent, WebhookRequests::OnMessageForBotSent::From, WebhookRequests::OnMessageForBotSent::Message, WebhookRequests::OnMessageForBotSent::Participant, WebhookRequests::OnMessageForBotSent::Payload, WebhookRequests::OnMessageForBotSent::Room, WebhookRequests::OnNewSessionInitiated, WebhookRequests::OnNewSessionInitiated::AdditionalExtras, WebhookRequests::OnNewSessionInitiated::Extras, WebhookRequests::OnNewSessionInitiated::From, WebhookRequests::OnNewSessionInitiated::Message, WebhookRequests::OnNewSessionInitiated::Participant, WebhookRequests::OnNewSessionInitiated::Payload, WebhookRequests::OnNewSessionInitiated::Room, WebhookRequests::OnNewSessionInitiated::RoomLog, WebhookRequests::OnNewSessionInitiated::UserProperty, WebhookRequests::OnRoomResolved, WebhookRequests::OnRoomResolved::AdditionalInfo, WebhookRequests::OnRoomResolved::Customer, WebhookRequests::OnRoomResolved::ResolvedBy, WebhookRequests::OnRoomResolved::Service
Constant Summary
Constants included from Types
Types::Bool, Types::Hash, Types::Int, Types::String
Class Method Summary collapse
-
.from_array(array) ⇒ Array<Object>
Create object from array of hash.
Class Method Details
.from_array(array) ⇒ Array<Object>
Create object from array of hash
16 17 18 |
# File 'lib/qismo/object.rb', line 16 def from_array(array) array.map { |a| new(a) } end |