Class: EDI::Service

Inherits:
Object
  • Object
show all
Includes:
DSL, Environment
Defined in:
lib/edi/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Environment

included, #validate_environment

Methods included from DSL

included

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)
  @message = 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)
  message.public_send(name, *args, &blk)
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



6
7
8
# File 'lib/edi/service.rb', line 6

def message
  @message
end

#responseObject

Returns the value of attribute response.



6
7
8
# File 'lib/edi/service.rb', line 6

def response
  @response
end

Instance Method Details

#runObject



16
17
18
# File 'lib/edi/service.rb', line 16

def run

end