class RouteNGNClient::Route

Public Instance Methods

blocked?() click to toggle source
# File lib/routengn_client/models/route.rb, line 28
def blocked?
  @attributes.has_key?('blocked') && @attributes.blocked == 'true' ? true : false
end
build_aors(sip_request, inbound_end_point_group, options = {}) click to toggle source
# File lib/routengn_client/models/route.rb, line 20
def build_aors(sip_request, inbound_end_point_group, options = {})
  self.contacts.collect { |c| c.build_aor(sip_request, inbound_end_point_group, options) }
end
build_contacts(end_points = nil) click to toggle source
# File lib/routengn_client/models/route.rb, line 11
def build_contacts(end_points = nil)
  if oepg = self.outbound_end_point_group
    end_points ||= oepg.prioritized_end_points
    @contacts = end_points.collect do |end_point|
      Contact.new(:end_point => end_point, :route => self)
    end
  end
end
contacts() click to toggle source
# File lib/routengn_client/models/route.rb, line 7
def contacts
  @contacts ||= self.build_contacts
end
inbound_rate() click to toggle source
# File lib/routengn_client/models/route.rb, line 24
def inbound_rate
  @attributes.inbound_rate
end