Class: LucidWorks::Server::CrawlersStatus

Inherits:
Base
  • Object
show all
Defined in:
lib/lucid_works/server/crawlers_status.rb

Constant Summary

Constants included from Utils::BoolConverter

Utils::BoolConverter::FALSE_VALUES, Utils::BoolConverter::TRUE_VALUES

Instance Attribute Summary

Attributes inherited from Base

#attributes, #id, #parent, #persisted, #raw_response, #response_data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

all, #collection_url, collection_url, create, #destroy, extract_parent_from_options, find, first, human_attribute_value, #human_attribute_value, #initialize, #inspect, last, #member_url, #persisted?, #read_attribute_for_validation, #save, schema, singleton_name, to_select, #update_attributes

Methods included from LucidWorks::SimpleNaming

#model_name

Methods included from Utils::BoolConverter

#to_bool

Constructor Details

This class inherits a constructor from LucidWorks::Base

Class Method Details

.member_url(parent, id = nil) ⇒ Object

:nodoc:



6
7
8
# File 'lib/lucid_works/server/crawlers_status.rb', line 6

def self.member_url(parent, id = nil) # :nodoc:
  "#{parent.uri}/crawlers/status"
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/lucid_works/server/crawlers_status.rb', line 10

def ok?
  self.status == 'OK' rescue false
end