Class: Etsy4r::ServerCommands

Inherits:
Commands
  • Object
show all
Defined in:
lib/etsy4r/server_commands.rb

Instance Attribute Summary

Attributes inherited from Commands

#client

Instance Method Summary collapse

Methods inherited from Commands

#initialize

Constructor Details

This class inherits a constructor from Etsy4r::Commands

Instance Method Details

#get_method_tableObject



4
5
6
# File 'lib/etsy4r/server_commands.rb', line 4

def get_method_table
  @client.process('/')
end

#get_server_epochObject



12
13
14
# File 'lib/etsy4r/server_commands.rb', line 12

def get_server_epoch
  @client.process('/server/epoch')
end

#pingObject



8
9
10
# File 'lib/etsy4r/server_commands.rb', line 8

def ping
  @client.process('/server/ping')
end