class Struct

Public Instance Methods

to_json(*a) click to toggle source
# File lib/slack/structs.rb, line 10
def to_json(*a)
  to_map.to_json(*a)
end
to_map() click to toggle source
# File lib/slack/structs.rb, line 4
def to_map
  map = Hash.new
  self.members.each { |m| map[m] = self[m] }
  map
end