Class: RubyHome::HAP::EVResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_home/hap/ev_response.rb

Instance Method Summary collapse

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_responseObject



9
10
11
12
# File 'lib/ruby_home/hap/ev_response.rb', line 9

def send_response
  send_header(session)
  send_body(session)
end