Class: FatZebra::Information
- Inherits:
-
APIResource
- Object
- FatZebraObject
- APIResource
- FatZebra::Information
- Defined in:
- lib/fat_zebra/information.rb
Overview
FatZebra Information
Manage information for the API
-
ping
Instance Attribute Summary
Attributes inherited from FatZebraObject
#data, #errors, #raw, #successful
Class Method Summary collapse
-
.ping(nonce = SecureRandom.hex) ⇒ FatZebra::Information
Ping the API.
Methods inherited from APIResource
class_name, #request, request, #resource_name, resource_name, resource_path, #resource_path
Methods inherited from FatZebraObject
#[], #[]=, #add_data, #initialize, initialize_from, #keys, #load_response_api, #to_hash, #to_json, #update_attributes, #update_from
Methods included from Validation
#errors, #valid!, #valid?, #validates
Constructor Details
This class inherits a constructor from FatZebra::FatZebraObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FatZebra::FatZebraObject
Class Method Details
.ping(nonce = SecureRandom.hex) ⇒ FatZebra::Information
Ping the API
18 19 20 21 |
# File 'lib/fat_zebra/information.rb', line 18 def ping(nonce = SecureRandom.hex) response = request(:get, '/ping', echo: nonce) initialize_from(response) end |