File: library_with_fines.rb

package info (click to toggle)
ruby-roxml 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 800 kB
  • sloc: ruby: 4,133; xml: 1,013; makefile: 7
file content (13 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
class LibraryWithFines

  include ROXML

  xml_name 'library'

  xml_accessor :name

  xml_accessor :fines,
               :as   => { :key => 'name', :value => 'desc' },
               :from => 'fine',
               :in   => 'policy/fines'
end