Class: RubyHome::HAP::EVResponse
- Inherits:
-
Object
- Object
- RubyHome::HAP::EVResponse
- Defined in:
- lib/ruby_home/hap/ev_response.rb
Instance Method Summary collapse
-
#initialize(session, body) ⇒ EVResponse
constructor
A new instance of EVResponse.
- #send_response ⇒ Object
Constructor Details
#initialize(session, body) ⇒ EVResponse
Returns a new instance of EVResponse.
4 5 6 7 |
# File 'lib/ruby_home/hap/ev_response.rb', line 4 def initialize(session, body) @session = session @body = body end |
Instance Method Details
#send_response ⇒ Object
9 10 11 12 |
# File 'lib/ruby_home/hap/ev_response.rb', line 9 def send_response send_header(session) send_body(session) end |