class Fog::Compute::Aliyun::RouteEntrys
Public Instance Methods
all(options={})
click to toggle source
# File lib/fog/aliyun/models/compute/route_entrys.rb, line 12 def all(options={}) requires :route_table options[:routeTableId]=route_table.id data = Fog::JSON.decode(service.list_route_tables(route_table.v_router_id, options).body)['RouteTables']['RouteTable'][0]["RouteEntrys"]["RouteEntry"] load(data) end
get(cidr_block)
click to toggle source
# File lib/fog/aliyun/models/compute/route_entrys.rb, line 19 def get(cidr_block) requires :route_table data=self.class.new(:service=>service,:route_table=>route_table).all() result=nil data.each do |i| if i.cidr_block==cidr_block result=i break end end result end