Sha256: ffee6d93e541d61b2d8989fee156693e418f4f20d860783ae2043aa02958a8b0

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

# {
#   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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appflux_ruby-0.1.2 lib/appflux_ruby/message_builders/custom_message.rb
appflux_ruby-0.1.1 lib/appflux_ruby/message_builders/custom_message.rb