class Yao::Resources::Subnet

Public Instance Methods

allocation_pools() click to toggle source

@return [Array<Range>]

# File lib/yao/resources/subnet.rb, line 11
def allocation_pools
  self["allocation_pools"].map do |pool|
    pool["start"]..pool["end"]
  end
end