Class: Latte::Response

Inherits:
Object show all
Defined in:
lib/latte/response.rb

Instance Method Summary collapse

Instance Method Details

#add_answer(record) ⇒ Object



5
6
7
8
# File 'lib/latte/response.rb', line 5

def add_answer record
  rr = parse_rr_string record
  packet.answer << rr
end

#dataObject



10
11
12
# File 'lib/latte/response.rb', line 10

def data
  packet.data
end

#to_sObject



14
15
16
# File 'lib/latte/response.rb', line 14

def to_s
  packet.to_s
end