mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
23 lines
432 B
Ruby
23 lines
432 B
Ruby
|
require 'fog/aws/models/elb/backend_server_description'
|
||
|
module Fog
|
||
|
module AWS
|
||
|
class ELB
|
||
|
class BackendServerDescriptions < Fog::Collection
|
||
|
|
||
|
model Fog::AWS::ELB::BackendServerDescription
|
||
|
|
||
|
attr_accessor :data, :load_balancer
|
||
|
|
||
|
def all
|
||
|
load(data)
|
||
|
end
|
||
|
|
||
|
def get(instance_port)
|
||
|
all.detect{|e| e.instance_port == instance_port}
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|