lib/icloud/session.rb
# Internal: Parse the "webservices" value returned during login into a hash
# of name=>url.
Parse the "webservices" value returned during login into a hash
of name=>url.
Parse the " webservices " value returned during login into a hash of name = > url .
def parse_services(json)
      Hash.new.tap do |hsh|
        json.map do |name, params|
          if params["status"] == "active"
            hsh[name] = params["url"]
          end
        end
      end
    end
def parse_services ( json ) Hash . new . tap do | hsh | json . map do | name , params | if params [ "status" ] == "active" hsh [ name ] = params [ "url" ] end end end end
Internal: Parse the "webservices" value returned during login into a hash
of name=>url.
Internal : Parse the " webservices " value returned during login into a hash of name = > url .
json