Class: Yma4r
Instance Method Summary collapse
Instance Method Details
#parse ⇒ Object
112 113 114 |
# File 'lib/yma4r.rb', line 112 def parse YmaParser::ResultSet.new(post) end |
#query ⇒ Object
104 105 106 107 108 109 110 |
# File 'lib/yma4r.rb', line 104 def query hash.map { |key,val| unless (val == nil || val == '') "#{URI.encode(key)}=#{URI.encode(val)}" end }.compact.join('&') end |