Sha256: d56da79ebb4b14f5a0b3af76c7df0606254e1b69647d84cecb1087fa1d33af0d

Contents?: true

Size: 850 Bytes

Versions: 2

Compression:

Stored size: 850 Bytes

Contents

# Eader

Parse EAD xml easily

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'eader', '~> 0.0.3'
```

And then execute:

```
$ bundle
```

## Usage

```ruby
doc = Eader::Document.new('/path/or/url/to/file.xml')
doc.dsc_levels #=> [#<Nokogiri::XML::Element ...>, ...]
doc.items      #=> [#<Eader::Item ...>, ...]


item = doc.items.first

item.unitid        #=> 'MR-0002'
item.origination   #=> 'N/A'
item.langmaterial  #=> 'English'
item.unittitle     #=> '5 empty loose CD jewel cases [sound recording]'
item.unitdate      #=> 'Jan 15, 2001'
item.unitdate_type #=> 'inclusive'
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eader-0.0.4 README.md
eader-0.0.3 README.md