module KakaoPush::ToHashable
Public Instance Methods
to_hash()
click to toggle source
# File lib/kakao_push/to_hashable.rb, line 3 def to_hash Hash[ instance_variables.map { |var_name| [var_name.to_s.gsub('@',''), instance_variable_get(var_name)] }.select {|el| !el.last.nil? } ] end