Class: Netscaler::Rewrite::Action
- Inherits:
-
NetscalerService
- Object
- NetscalerService
- Netscaler::Rewrite::Action
- Defined in:
- lib/netscaler/rewrite/action.rb
Instance Method Summary collapse
-
#initialize(netscaler) ⇒ Action
constructor
A new instance of Action.
- #show(payload = {}) ⇒ Object
Methods inherited from NetscalerService
Constructor Details
#initialize(netscaler) ⇒ Action
Returns a new instance of Action.
7 8 9 |
# File 'lib/netscaler/rewrite/action.rb', line 7 def initialize(netscaler) @netscaler=netscaler end |
Instance Method Details
#show(payload = {}) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/netscaler/rewrite/action.rb', line 11 def show(payload={}) if payload[:name] != nil then validate_payload(payload, [:name]) return @netscaler.adapter.get("config/rewriteaction/#{payload[:name]}") elsif payload == {} then return @netscaler.adapter.get('config/rewriteaction/') else raise ArgumentError, 'payload supplied must have been missing :name' end end |