Class: Fog::AWS::ELB::Listeners

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

Instance Attribute Summary collapse

Attributes inherited from Collection

#connection

Instance Method Summary collapse

Methods inherited from Collection

#clear, #create, #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 Fog::Attributes::InstanceMethods

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

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/listeners.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/listeners.rb', line 9

def load_balancer
  @load_balancer
end

Instance Method Details

#allObject



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

def all
  load(munged_data)
end

#get(lb_port) ⇒ Object



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

def get(lb_port)
  all.detect{|listener| listener.lb_port == lb_port}
end