Method: PureCloud::ConversationNotificationVideo#initialize
- Defined in:
- lib/purecloud/models/conversation_notification_video.rb
#initialize(attributes = {}) ⇒ ConversationNotificationVideo
Returns a new instance of ConversationNotificationVideo.
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/purecloud/models/conversation_notification_video.rb', line 95 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'state'] self.state = attributes[:'state'] end if attributes[:'self'] self._self = attributes[:'self'] end if attributes[:'id'] self.id = attributes[:'id'] end if attributes[:'context'] self.context = attributes[:'context'] end if attributes[:'audioMuted'] self.audio_muted = attributes[:'audioMuted'] end if attributes[:'videoMuted'] self.video_muted = attributes[:'videoMuted'] end if attributes[:'sharingScreen'] self.sharing_screen = attributes[:'sharingScreen'] end if attributes[:'provider'] self.provider = attributes[:'provider'] end if attributes[:'disconnectType'] self.disconnect_type = attributes[:'disconnectType'] end if attributes[:'connectedTime'] self.connected_time = attributes[:'connectedTime'] end if attributes[:'disconnectedTime'] self.disconnected_time = attributes[:'disconnectedTime'] end if attributes[:'additionalProperties'] self.additional_properties = attributes[:'additionalProperties'] end end |