Class: AlchemyLanguage::TextService
- Inherits:
-
ActiveMethod::Base
- Object
- ActiveMethod::Base
- AlchemyLanguage::TextService
- Defined in:
- lib/alchemy_language/text_service.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from ActiveMethod::Base
Instance Method Summary collapse
-
#initialize(text) ⇒ TextService
constructor
A new instance of TextService.
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
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/alchemy_language/text_service.rb', line 3 def path @path end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/alchemy_language/text_service.rb', line 3 def type @type end |