Skip to content

Instantly share code, notes, and snippets.

@SixArm
Created January 22, 2015 00:30
Show Gist options
  • Save SixArm/ef5359c13106dd2e04d3 to your computer and use it in GitHub Desktop.
Save SixArm/ef5359c13106dd2e04d3 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