Class: Tengai::Body
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.find(client, body, parser = BodyDataSheetParser) ⇒ Object
12 13 14 15 16 |
# File 'lib/tengai/body.rb', line 12 def self.find(client, body, parser=BodyDataSheetParser) data = client.cmd('String' => body.to_s, 'Match' => /<cr>:\s*$/) data = parser.parse(data) self.new(data) end |
Instance Method Details
#==(other) ⇒ Object
18 19 20 |
# File 'lib/tengai/body.rb', line 18 def ==(other) id == other.id end |