build

in lib/facebook_ads/ad_objects/server_side/event_response.rb [49:69]


      def build(attributes = {})
        return unless attributes.is_a?(Hash)

        
        attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

        if attributes.has_key?(:'events_received')
          self.events_received = attributes[:'events_received']
        end

        if attributes.has_key?(:'messages')
          if (value = attributes[:'messages']).is_a?(Array)
            self.messages = value
          end
        end

        if attributes.has_key?(:'fbtrace_id')
          self.fbtrace_id = attributes[:'fbtrace_id']
        end
      end