module Glowstick::Syncable

Public Instance Methods

glowstick(*attributes) click to toggle source
# File lib/glowstick/syncable.rb, line 10
def glowstick(*attributes)
  self._glowstick_attributes ||= attributes
end
glowstick_attrs() click to toggle source
# File lib/glowstick/syncable.rb, line 15
def glowstick_attrs
  self.class._glowstick_attributes.each_with_object({}) do |key, attrs|
    attrs[key] = self.public_send(key)
  end
end