Giter Site home page Giter Site logo

CamelCase elements always nil about happymapper HOT 2 CLOSED

mvz avatar mvz commented on August 23, 2024
CamelCase elements always nil

from happymapper.

Comments (2)

jweir avatar jweir commented on August 23, 2024

If you need a work around until this is fixed: explicitly set the tag name:

class Foo
  include HappyMapper

  tag 'foo'
  has_one :message_id, String, tag: 'MessageId'
end

Foo.parse "<foo><MessageId>f3a16e4c-b812-4934-a009-742ac51668b5</MessageId></foo>"
#=> <Foo:0x007fc774211798 @message_id="f3a16e4c-b812-4934-a009-742ac51668b5">

from happymapper.

milgner avatar milgner commented on August 23, 2024

Thanks you for the hint. I had hoped to not need classes for every case, but I'll give it a try!

from happymapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.