Sha256: 8c56eff084f288376fa15c7952f4458537ec8eca9647f8469e594a1d556bbd17
Contents?: true
Size: 759 Bytes
Versions: 6
Compression:
Stored size: 759 Bytes
Contents
require 'fog/core/collection' require 'fog/aliyun/models/compute/eip_address' module Fog module Compute class Aliyun class EipAddresses < Fog::Collection model Fog::Compute::Aliyun::EipAddress 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 def get(allocation_id) if allocation_id self.class.new(service: service).all(allocation_id: allocation_id)[0] end end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems