Sha256: 829e3803948e1099fb4aada548827e29ef65af3de11916390e0ecaba313c8b4a
Contents?: true
Size: 1.12 KB
Versions: 5
Compression:
Stored size: 1.12 KB
Contents
class ZabbixApi class Basic # Initializes a new Basic object with ZabbixApi Client # # @param client [ZabbixApi::Client] # @return [ZabbixApi::Client] def initialize(client) @client = client end # Placeholder for inherited objects to provide object-specific method name # # @raise [ApiError] Basic object does not directly support method_name def method_name raise ApiError.new("Can't call method_name here") end # Placeholder for inherited objects to provide default options # # @return [Hash] def default_options {} end # Returns the object's plural id field name (identify) based on key # # @return [String] def keys key + 's' end # Returns the object's id field name (identify) based on method_name + id # # @return [String] def key method_name + 'id' end # Placeholder for inherited objects to provide object-specific id field name # # @raise [ApiError] Basic object does not directly support identify def identify raise ApiError.new("Can't call identify here") end end end
Version data entries
5 entries across 5 versions & 2 rubygems