Class: Fog::AWS::ELB::BackendServerDescriptions

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/aws/models/elb/backend_server_descriptions.rb

Instance Attribute Summary collapse

Attributes inherited from Collection

#service

Instance Method Summary collapse

Methods inherited from Collection

#clear, #create, #destroy, #initialize, #inspect, #load, model, #model, #new, #reload, #table, #to_json

Methods included from Fog::Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Core::DeprecatedConnectionAccessors

#connection, #connection=, #prepare_service_value

Methods included from Fog::Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one

Constructor Details

This class inherits a constructor from Fog::Collection

Instance Attribute Details

#dataObject

Returns the value of attribute data.



9
10
11
# File 'lib/fog/aws/models/elb/backend_server_descriptions.rb', line 9

def data
  @data
end

#load_balancerObject

Returns the value of attribute load_balancer.



9
10
11
# File 'lib/fog/aws/models/elb/backend_server_descriptions.rb', line 9

def load_balancer
  @load_balancer
end

Instance Method Details

#allObject



11
12
13
# File 'lib/fog/aws/models/elb/backend_server_descriptions.rb', line 11

def all
  load(data)
end

#get(instance_port) ⇒ Object



15
16
17
# File 'lib/fog/aws/models/elb/backend_server_descriptions.rb', line 15

def get(instance_port)
  all.detect{|e| e.instance_port == instance_port}
end