Class: DaFace::Datasift::Language

Inherits:
Object
  • Object
show all
Defined in:
lib/da_face/datasift/language.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Language

Returns a new instance of Language.



6
7
8
9
10
# File 'lib/da_face/datasift/language.rb', line 6

def initialize data={}
  @confidence = data[:confidence]
  @tag = data[:tag]
  @tag_extended = data[:tag_extended]
end

Instance Attribute Details

#confidenceObject (readonly)

Returns the value of attribute confidence.



4
5
6
# File 'lib/da_face/datasift/language.rb', line 4

def confidence
  @confidence
end

#tagObject (readonly)

Returns the value of attribute tag.



4
5
6
# File 'lib/da_face/datasift/language.rb', line 4

def tag
  @tag
end

#tag_extendedObject (readonly)

Returns the value of attribute tag_extended.



4
5
6
# File 'lib/da_face/datasift/language.rb', line 4

def tag_extended
  @tag_extended
end