Class: Dtn::Messages::Catalog::TradeConditions

Inherits:
MessageWithSimpleParser show all
Defined in:
lib/dtn/messages/catalog/trade_conditions.rb

Overview

Trade conditions

Class Method Summary collapse

Methods inherited from MessageWithSimpleParser

parse, #termination?

Methods inherited from Dtn::Message

#callback_name, callback_name, parse

Class Method Details

.fieldsObject



9
10
11
12
13
14
15
# File 'lib/dtn/messages/catalog/trade_conditions.rb', line 9

def fields
  @fields ||= {
    id: :to_i,
    name: :to_s,
    description: :to_s
  }
end