Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/next-big-sound.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_xml(xml_data) ⇒ Object



16
17
18
# File 'lib/next-big-sound.rb', line 16

def self.from_xml(xml_data)
  XmlSimple.xml_in(xml_data)
end

Instance Method Details

#to_url_paramsObject



8
9
10
11
12
13
14
# File 'lib/next-big-sound.rb', line 8

def to_url_params
  elements = []
  keys.size.times do |i|
    elements << "#{CGI::escape(keys[i])}=#{CGI::escape(values[i])}"
  end
  elements.join('&')
end