Skip to content

Instantly share code, notes, and snippets.

@joelparkerhenderson
Created January 22, 2015 00:31
Show Gist options
  • Save joelparkerhenderson/ae3e3f34bdc6036abca8 to your computer and use it in GitHub Desktop.
Save joelparkerhenderson/ae3e3f34bdc6036abca8 to your computer and use it in GitHub Desktop.
require 'ostruct'
class Transaction
attr_accessor :name, :last_name, :nation_id
def nation; OpenStruct.new(name: "Nation ID " + nation_id); end
end
@transaction = Transaction.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment