Class: Fog::Compute::Packet::BgpSessions
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Packet::BgpSessions
- Defined in:
- lib/fog/compute/packet/models/bgp_sessions.rb
Overview
BgpSessions Collection
Instance Method Summary collapse
Instance Method Details
#all(device_id) ⇒ Object
10 11 12 13 |
# File 'lib/fog/compute/packet/models/bgp_sessions.rb', line 10 def all(device_id) response = service.list_bgp_sessions(device_id) load(response.body["bgp_sessions"]) end |
#get(id) ⇒ Object
15 16 17 18 |
# File 'lib/fog/compute/packet/models/bgp_sessions.rb', line 15 def get(id) response = service.get_bgp_session(id) new(response.body) end |