Class: Purest::Pod

Inherits:
APIMethods show all
Defined in:
lib/purest/pod.rb

Constant Summary collapse

GET_PARAMS =
%i[action failover_preferance footprint historical
latency mediator names on pending pending_only
space].freeze

Instance Method Summary collapse

Methods inherited from APIMethods

#append_path

Methods inherited from Rest

access_method?, #authenticated?, #concat_url, #initialize, #logout, method_missing, #use_named_parameter

Constructor Details

This class inherits a constructor from Purest::Rest

Instance Method Details

#create(options = nil) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/purest/pod.rb', line 15

def create(options = nil)
  if options[:array]
    super(options, 'pod', "array/#{options[:array]}")
  else
    super(options, 'pod')
  end
end

#delete(options = nil) ⇒ Object



27
28
29
30
31
32
33
# File 'lib/purest/pod.rb', line 27

def delete(options = nil)
  if options[:array]
    super(options, 'pod', "array/#{options[:array]}")
  else
    super(options, 'pod')
  end
end

#get(options = nil) ⇒ Object



11
12
13
# File 'lib/purest/pod.rb', line 11

def get(options = nil)
  super(options, 'pod', GET_PARAMS)
end

#update(options = nil) ⇒ Object



23
24
25
# File 'lib/purest/pod.rb', line 23

def update(options = nil)
  super(options, 'pod')
end