Class: Fact

Inherits:
EDI::Service show all
Defined in:
lib/edi/services/fact.rb

Instance Attribute Summary

Attributes inherited from EDI::Service

#message, #response

Instance Method Summary collapse

Methods inherited from EDI::Service

#initialize, #method_missing

Methods included from EDI::Environment

included, #validate_environment

Methods included from EDI::DSL

included

Constructor Details

This class inherits a constructor from EDI::Service

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EDI::Service

Instance Method Details

#runObject



4
5
6
# File 'lib/edi/services/fact.rb', line 4

def run
  EDI.get("http://numbersapi.com/random").unparsed_response
end