Module: RTM::AR::TOSTRING::TopicName
- Defined in:
- lib/rtm/activerecord/io/to_string.rb
Instance Method Summary collapse
Instance Method Details
#to_s(style = :short) ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/rtm/activerecord/io/to_string.rb', line 83 def to_s(style=:short) case style when :short value when :long r = " #{reifier.to_s(:short)}" if reifier i = " iids=#{item_identifiers.to_s}" unless item_identifiers.empty? "#<RTM::TopicName id=#{id}#{i}#{r} type=#{type.to_s(:short)} value=#{value} variants:#{variants.size}>" else super() # these () are needed, otherwise the own parameters are passed in end end |