class MessengerPigeon::Redmine::JsonFormatter
Handle JSON returned by Redmine
Public Instance Methods
decode(json)
click to toggle source
# File lib/messenger_pigeon/modules/redmine.rb, line 34 def decode(json) remove_root(ActiveSupport::JSON.decode(json)) end
Private Instance Methods
remove_root(data)
click to toggle source
# File lib/messenger_pigeon/modules/redmine.rb, line 40 def remove_root(data) # Just return the first value in the hash data.each do |_k, v| return v end end