Skip to content

Only mapped attributes should have accessors, the original field names should not #11

@pilaf

Description

@pilaf

Currently if you define a mapped attribute, the original FileMaker attribute name will get a writer method due to how Spyke works (uses method_missing).

E.g.

class Foo < FmRest::Spyke::Base
  attributes foo: "FooBar"
end

f = Foo.new

f.FooBar = "oopsie!" # this will work, but it shouldn't!
f.foo # => "oopsie!"

Only the mapped version should work (e.g. foo= in the above example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions