Skip to content

Chap. 25 Introduce Parameter Object #189

Description

@hansondr

This chapter centers around creating a simple parameter object recipient to hold on to first_name, last_name and email but doesn't actually show the implementation for this parameter object. I found this strange given that the other chapters I've read so far seem to explicitly include all the pieces for implementing the particular refactoring. Not a big deal as I imagine the class is just something like:

class Recipient
  attr_reader :first_name, :last_name, :email
  def initialize(first_name, last_name, email)
    @first_name = first_name
    @last_name = last_name
    @email = email
  end
end

Would adding the simple implementation similar to the above to the chapter add or distract from the chapter? I'm not sure if this was already internally discussed but figured I'd share my thoughts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions