Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing as integer doesn't seem to be working. #70

Closed
tebayoso opened this issue Apr 24, 2015 · 2 comments
Closed

Parsing as integer doesn't seem to be working. #70

tebayoso opened this issue Apr 24, 2015 · 2 comments

Comments

@tebayoso
Copy link
Contributor

I have this XML Node:

<Warning Type="1" ShortText="MIN AGE 20  " RecordID="613"/>

And I'm trying to parse it with:

  class Warning < HertzSearch
    element :Warning, value: :Type,       as: :warning_type, class: Integer
    element :Warning, value: :ShortText,  as: :short_text
    element :Warning, value: :RecordID,   as: :record_id, class: Integer
  end

The expected output should be integers in both values. But I still get Strings.

@krasnoukhov
Copy link
Collaborator

Hello, thanks for reporting. Would you mind adding a failing spec for that?

@krasnoukhov
Copy link
Collaborator

Thanks. Fixed on master!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants