Class: Latte::Query
Defined Under Namespace
Classes: Question
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #each ⇒ Object (also: #each_question)
- #id ⇒ Object
- #packet ⇒ Object
- #to_s ⇒ Object
Instance Method Details
#<=>(other) ⇒ Object
30 31 32 |
# File 'lib/latte/query.rb', line 30 def <=> other to_s <=> other.to_s end |
#each ⇒ Object Also known as: each_question
34 35 36 37 38 39 |
# File 'lib/latte/query.rb', line 34 def each questions.each do |q| question = Question.new q yield question end end |
#id ⇒ Object
42 43 44 |
# File 'lib/latte/query.rb', line 42 def id packet.header.id end |
#packet ⇒ Object
46 47 48 |
# File 'lib/latte/query.rb', line 46 def packet @packet ||= build_packet end |
#to_s ⇒ Object
26 27 28 |
# File 'lib/latte/query.rb', line 26 def to_s packet.to_s end |