Skip to content

Instantly share code, notes, and snippets.

@3limin4t0r
Created December 20, 2019 20:58
Show Gist options
  • Save 3limin4t0r/05e375a29964fdd1b495478322a61e50 to your computer and use it in GitHub Desktop.
Save 3limin4t0r/05e375a29964fdd1b495478322a61e50 to your computer and use it in GitHub Desktop.
config = {a: 1, b: 2}
class AccountReports
def initialize(config = {})
@config = config
end
def start
@config
end
end
account_reports = AccountReports.new(config)
account_reports.start
#=> {:a=>1, :b=>2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment