lib/xclarity_client/services/mixins/endpoint_manager_mixin.rb
def manages_endpoint(endpoint_class)
        raise ArgumentError, "The class #{endpoint_class.name} isn't a subclass of XClarityEndpoint" unless endpoint_class < Endpoints::XclarityEndpoint

        define_method(:managed_resource) { endpoint_class }
      end
#
# Sets which endpoint is managed by the service
#
# @param [Class] - Class that represents some endpoind
# @see XClarityClient::Endpoints::XClarityEndpoint
#
Sets which endpoint is managed by the service
Sets which endpoint is managed by the service
def manages_endpoint(endpoint_class)
        raise ArgumentError, "The class #{endpoint_class.name} isn't a subclass of XClarityEndpoint" unless endpoint_class < Endpoints::XclarityEndpoint
        define_method(:managed_resource) { endpoint_class }
      end
def manages_endpoint ( endpoint_class ) raise ArgumentError , "The class #{endpoint_class.name} isn't a subclass of XClarityEndpoint" unless endpoint_class < Endpoints :: XclarityEndpoint define_method ( :managed_resource ) { endpoint_class } end
Sets which endpoint is managed by the service
Sets which endpoint is managed by the service
endpoint_class
Class that represents some endpoind
Class that represents some endpoind
see
None