Module: DoverToCalais
- Defined in:
- lib/dover_to_calais.rb,
lib/dover_to_calais/models.rb,
lib/dover_to_calais/version.rb
Defined Under Namespace
Classes: Dover, EntityModel, ResponseData, ResponseItem
Constant Summary collapse
- PROXY =
nil
- REDIS =
"redis://127.0.0.1:6379/6"
- VERSION =
"0.2.1"
Instance Attribute Summary collapse
-
#count ⇒ Integer
readonly
The count (frequency) of the element in the given input.
-
#importance ⇒ 1, 2
readonly
Only applicable to the SocialTag element.
-
#name ⇒ String
readonly
The element’s name.
-
#normalized ⇒ String
readonly
If the element is one of: (Company, City, ProvinceOrState, Country) OpenCalais provides disambiguation of its value in the ‘normalized’ attribute.
-
#originalValue ⇒ String
readonly
Only applicable to the SocialTag element.
-
#relevance ⇒ Float
readonly
The importance of the element in the context of the given input, in the range 0-1 (1 being the most relevant and important).
-
#value ⇒ String
readonly
The element’s text value.
Class Method Summary collapse
Instance Attribute Details
#count ⇒ Integer (readonly)
Returns the count (frequency) of the element in the given input.
|
# File 'lib/dover_to_calais.rb', line 28
|
#importance ⇒ 1, 2 (readonly)
Only applicable to the SocialTag element.
|
# File 'lib/dover_to_calais.rb', line 28
|
#name ⇒ String (readonly)
Returns the element’s name.
|
# File 'lib/dover_to_calais.rb', line 28
|
#normalized ⇒ String (readonly)
If the element is one of: (Company, City, ProvinceOrState, Country) OpenCalais provides disambiguation of its value in the ‘normalized’ attribute. For instance, the element <City>Birmingham</City> may include the attribute normalized = “Birmingham, UK” in order to avoid confusion with the city of Birmingham, USA.
|
# File 'lib/dover_to_calais.rb', line 28
|
#originalValue ⇒ String (readonly)
Only applicable to the SocialTag element.
|
# File 'lib/dover_to_calais.rb', line 28
|
#relevance ⇒ Float (readonly)
The importance of the element in the context of the given input, in the range 0-1 (1 being the most relevant and important). The score has 3-digit precision after the decimal point.
|
# File 'lib/dover_to_calais.rb', line 28
|
#value ⇒ String (readonly)
Returns the element’s text value.
|
# File 'lib/dover_to_calais.rb', line 28
|
Class Method Details
.flushdb ⇒ Object
19 20 21 22 |
# File 'lib/dover_to_calais.rb', line 19 def self.flushdb Ohm.redis = Redic.new(REDIS) Ohm.redis.call "FLUSHDB" end |