Sha256: fe7eb149c66998923bcdf9dd3b9cafa37a38c7b85a543f86e8f25919672d5238
Contents?: true
Size: 1.2 KB
Versions: 14
Compression:
Stored size: 1.2 KB
Contents
require 'epom/epom_element' module Epom class Zone < EpomElement def self.extended_methods { :delete_zone => { :url => '/rest-api/zones/ZONE_ID/delete.do', :url_parameters => [:zoneId], :body_parameters => [:hash, :timestamp, :username], :method => :post }, :get_zone_placements => { :url => '/rest-api/zones/ZONE_ID/placements.do', :url_parameters => [:zoneId], :body_parameters => [:hash, :timestamp, :username], :method => :get }, :update_zone => { :url => '/rest-api/zones/update.do', :body_parameters => [:zoneId, :siteId, :description, :name, :hash, :timestamp, :username], :method => :post }, :create_zone => { :url => '/rest-api/zones/update.do', :body_parameters => [:siteId, :description, :name, :hash, :timestamp, :username], :method => :post } } end def self.replace_params_in_url(url, url_params) url.gsub!('ZONE_ID', url_params[:zoneId].to_s) if url.include?('ZONE_ID') url end end end
Version data entries
14 entries across 14 versions & 1 rubygems