appflux/appflux-ruby

View on GitHub
lib/appflux_ruby/message_builders/custom_message.rb

Summary

Maintainability
A
0 mins
Test Coverage
# {
#   custom_tabs:{
#     tab_1: {

#     },
#     tab_2: {

#     }
#   }
# }
module AppfluxRuby
  module MessageBuilders
    class CustomMessage
      def initialize
        @custom_tabs = Array.new
      end

      def add_tab(tab_name, options_data = {})
        # @custom_tabs << { "#{ tab_name }": options_data }
        ::AppfluxRuby::Bugflux.additional_data[tab_name] = options_data
      end
    end
  end
end