Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Error when using numeric_set_attr

Closed Beginner friendly
#162 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
aws, ruby
Domain
database

Research direction

Inspect lib/aws-record/record/attributes.rb around line 437 and locate the NumericSetMarshaler initializer used by numeric_set_attr. Confirm the initializer accepts the arguments passed there and verify that creating a numeric_set_attr no longer raises the reported ArgumentError; the payload does not name a test file to run.

Written by the indexing model from the issue text.

Description

bug p2
Describe the feature

When creating an attribute with numeric_set_attr, I get the following error:

/usr/local/bundle/gems/aws-record-2.14.0/lib/aws-record/record/attributes.rb:437:in 'BasicObject#initialize': wrong number of arguments (given 1, expected 0) (ArgumentError)
attr(name, Marshalers::NumericSetMarshaler.new(opts), opts)

It looks like the initializer for Marshalers::NumericSetMarshaler is not properly defined. I'll submit a pull request.

Use Case

n/a

Proposed Solution

I will submit a PR

Other Information

No response

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
aws-sdk-ruby-record version used

2.15.2

Environment details (OS name and version, etc.)

Linux

Dominant language
Ruby
Stars
318
Forks
44
Avg merge
3d 15h
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/aws-record-ruby

All issues in aws/aws-record-ruby

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.