Class: EDI::Service
- Inherits:
-
Object
- Object
- EDI::Service
- Includes:
- DSL, Environment
- Defined in:
- lib/edi/service.rb
Direct Known Subclasses
Dice, Eightball, Fact, Giphy, IHeartQuotes, ImgFlip, NullService, TweetThat, Weather, Youtube
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message) ⇒ Service
constructor
A new instance of Service.
- #method_missing(name, *args, &blk) ⇒ Object
- #run ⇒ Object
Methods included from Environment
included, #validate_environment
Methods included from DSL
Constructor Details
#initialize(message) ⇒ Service
Returns a new instance of Service.
7 8 9 10 |
# File 'lib/edi/service.rb', line 7 def initialize() @message = @response = "" end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &blk) ⇒ Object
12 13 14 |
# File 'lib/edi/service.rb', line 12 def method_missing(name, *args, &blk) .public_send(name, *args, &blk) end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/edi/service.rb', line 6 def @message end |
#response ⇒ Object
Returns the value of attribute response.
6 7 8 |
# File 'lib/edi/service.rb', line 6 def response @response end |
Instance Method Details
#run ⇒ Object
16 17 18 |
# File 'lib/edi/service.rb', line 16 def run end |