Class: AlchemyLanguage::TextService

Inherits:
ActiveMethod::Base show all
Defined in:
lib/alchemy_language/text_service.rb

Instance Attribute Summary collapse

Attributes inherited from ActiveMethod::Base

#json_res

Instance Method Summary collapse

Methods inherited from ActiveMethod::Base

authenticate!, authenticate_successfully?, before_request, define_model, json_parser, valid_api_key?

Constructor Details

#initialize(text) ⇒ TextService

Returns a new instance of TextService.



27
28
29
30
# File 'lib/alchemy_language/text_service.rb', line 27

def initialize(text)
  @path = text
  @type = "text"
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



3
4
5
# File 'lib/alchemy_language/text_service.rb', line 3

def path
  @path
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/alchemy_language/text_service.rb', line 3

def type
  @type
end