class Fog::Compute::Aliyun::EipAddresses
Public Instance Methods
all(filters_arg = {})
click to toggle source
# File lib/fog/aliyun/models/compute/eip_addresses.rb, line 12 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)
click to toggle source
# File lib/fog/aliyun/models/compute/eip_addresses.rb, line 22 def get(allocation_id) self.class.new(service: service).all(allocation_id: allocation_id)[0] if allocation_id end