Class: Hcloud::Network
Instance Attribute Summary
Attributes included from EntryLoader
#response
Instance Method Summary
collapse
#_attributes, #_load, #_run_callbacks, #_update_attribute, #client, #initialize, #inspect, #method_missing, #prepare_request, #resource_path, #resource_url, #respond_to_missing?, #rollback, #save, #update
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Hcloud::EntryLoader
Instance Method Details
#add_route(destination:, gateway:) ⇒ Object
25
26
27
|
# File 'lib/hcloud/network.rb', line 25
def add_route(destination:, gateway:)
prepare_request('actions/add_route', j: COLLECT_ARGS.call(__method__, binding))
end
|
#add_subnet(type:, ip_range: nil, network_zone:) ⇒ Object
17
18
19
|
# File 'lib/hcloud/network.rb', line 17
def add_subnet(type:, ip_range: nil, network_zone:)
prepare_request('actions/add_subnet', j: COLLECT_ARGS.call(__method__, binding))
end
|
#del_route(destination:, gateway:) ⇒ Object
29
30
31
|
# File 'lib/hcloud/network.rb', line 29
def del_route(destination:, gateway:)
prepare_request('actions/del_route', j: COLLECT_ARGS.call(__method__, binding))
end
|
#del_subnet(ip_range:) ⇒ Object
21
22
23
|
# File 'lib/hcloud/network.rb', line 21
def del_subnet(ip_range:)
prepare_request('actions/del_subnet', j: COLLECT_ARGS.call(__method__, binding))
end
|