Class: Fog::Compute::Aliyun::EipAddresses
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Aliyun::EipAddresses
- Defined in:
- lib/fog/aliyun/models/compute/eip_addresses.rb
Instance Method Summary collapse
Instance Method Details
#all(filters_arg = {}) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/aliyun/models/compute/eip_addresses.rb', line 10 def all(filters_arg = {}) data = Fog::JSON.decode(service.list_eip_addresses(filters_arg).body)['EipAddresses']['EipAddress'] load(data) # load(data['volumeSet']) # if server # self.replace(self.select {|volume| volume.server_id == server.id}) # end # self end |
#get(allocation_id) ⇒ Object
20 21 22 23 24 |
# File 'lib/fog/aliyun/models/compute/eip_addresses.rb', line 20 def get(allocation_id) if allocation_id self.class.new(service: service).all(allocation_id: allocation_id)[0] end end |