module Ribbon::Intercom::Packageable::Mixin

Public Class Methods

included(base) click to toggle source
# File lib/ribbon/intercom/packageable/mixin.rb, line 7
def included(base)
  base.extend(ClassMethods)
end

Public Instance Methods

package_data() click to toggle source

Returns the package data for the instance as a hash.

# File lib/ribbon/intercom/packageable/mixin.rb, line 24
def package_data
  self.class._package_with_methods.map { |meth| [meth, public_send(meth)] }.to_h
end