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
Attributes included from ObjectHelper
Class Method Summary collapse
-
.ping(nonce = SecureRandom.hex) ⇒ FatZebra::Information
Ping the API.
Methods inherited from APIResource
Methods included from APIHelper
included, #request, #resource_name, #resource_path
Methods inherited from FatZebraObject
initialize_from, #load_response_api, #update_from
Methods included from Validation
#errors, #valid!, #valid?, #validates
Methods included from ObjectHelper
#[], #[]=, #add_accessor, #add_accessors, #add_data, #initialize, #inspect, #keys, #method_missing, #remove_accessor, #to_hash, #to_json, #update_attributes
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FatZebra::ObjectHelper
Class Method Details
.ping(nonce = SecureRandom.hex) ⇒ FatZebra::Information
Ping the API
20 21 22 23 |
# File 'lib/fat_zebra/information.rb', line 20 def ping(nonce = SecureRandom.hex) response = request(:get, '/ping', echo: nonce) initialize_from(response) end |