Namespace

Methods

Wonderfl::Utils

Public Instance Methods

dump(path, api_key) click to toggle source

Dumps object as a JSON string (for debugging).

# File lib/wonderfl/utils.rb, line 4
  def dump(path, api_key)
    url = Wonderfl::BASE_URL + path + '?api_key=' + api_key
    Net::HTTP.get_response(URI.parse(url)).body
  end
parse_time(date) click to toggle source

Creates a new Time object with the date from epoch.

# File lib/wonderfl/utils.rb, line 10
  def parse_time(date)
    date ? Time.at(date) : nil
  end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.