Class: Datatxt::Nex

Inherits:
Base
  • Object
show all
Defined in:
lib/datatxt/nex.rb

Constant Summary collapse

ENDPOINT =
"/datatxt/nex/v1"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countryObject

Returns the value of attribute country.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def country
  @country
end

#custom_spotsObject

Returns the value of attribute custom_spots.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def custom_spots
  @custom_spots
end

#extra_typesObject

Returns the value of attribute extra_types.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def extra_types
  @extra_types
end

#htmlObject

Returns the value of attribute html.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def html
  @html
end

#html_fragmentObject

Returns the value of attribute html_fragment.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def html_fragment
  @html_fragment
end

#includeObject

Returns the value of attribute include.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def include
  @include
end

#langObject

Returns the value of attribute lang.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def lang
  @lang
end

#min_confidenceObject

Returns the value of attribute min_confidence.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def min_confidence
  @min_confidence
end

#min_lengthObject

Returns the value of attribute min_length.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def min_length
  @min_length
end

#social_hashtagObject

Returns the value of attribute social_hashtag.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def social_hashtag
  @social_hashtag
end

#social_mentionObject

Returns the value of attribute social_mention.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def social_mention
  @social_mention
end

#textObject

Returns the value of attribute text.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def text
  @text
end

#urlObject

Returns the value of attribute url.



11
12
13
# File 'lib/datatxt/nex.rb', line 11

def url
  @url
end

Instance Method Details

#analyze(options) ⇒ Object



13
14
15
16
# File 'lib/datatxt/nex.rb', line 13

def analyze(options)
  params = options
  call(ENDPOINT, params)
end