fog/fog — pull request #3243 by hh (2014-11-05 23:51:57+00:00)
Title: add :type to RS LoadBalancers nodes

This is cleaned up and 'works for me'

I used Charles Proxy to debug traffic generate the gists

https://gist.github.com/hh/d9cbd23097d42db7e531

'''ruby
c=Fog::Rackspace::LoadBalancers.new(rackspace_region: :dfw,
connection_options: {ssl_verify_peer: false, proxy: 'http://localhost:8888'})
lb=s.load_balancers.find {|lb| lb.name == 'testhttp'}
'''

'''pry
[2] pry(main)> lb.nodes
=> [ ,
,
]
[3] pry(main)> lb.nodes.last.type="SECONDARY"
=> "SECONDARY"
[4] pry(main)> lb.nodes.last.save
=> true
[5] pry(main)> s.load_balancers.find {|lb| lb.name == 'testhttp'}.nodes
=> [ ,
,
]

'''