class Guilded::Data

Attributes

content[R]

Public Class Methods

new() click to toggle source
# File lib/guilded/data.rb, line 8
def initialize
  @content = {}
end

Public Instance Methods

add( data ) click to toggle source
# File lib/guilded/data.rb, line 12
def add( data )
  content.merge! data
end
empty?() click to toggle source
# File lib/guilded/data.rb, line 20
def empty?
  content.empty?
end
to_javascript() click to toggle source
# File lib/guilded/data.rb, line 16
def to_javascript
  "g[\"data\"]=#{content.to_json};"
end