Class: MailchimpMarketing::PingApi

Inherits:
Object
  • Object
show all
Defined in:
lib/MailchimpMarketing/api/ping_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ PingApi

Returns a new instance of PingApi.



19
20
21
# File 'lib/MailchimpMarketing/api/ping_api.rb', line 19

def initialize(api_client)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/MailchimpMarketing/api/ping_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#get(opts = {}) ⇒ Object

Ping



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/MailchimpMarketing/api/ping_api.rb', line 24

def get(opts = {})

  query_params = {}
  post_body = nil

  local_var_path = '/ping'
  data = @api_client.call_api(:GET, local_var_path,
    :query_params => query_params,
    :body => post_body)
  return data
end