Example usage of method_struct for Service Objects in a Rails app
Ruby CSS JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
vendor/assets
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Service Objects Example app

This is a sample application which houses a working example of code featured in the Wrangling Service Objects with method_struct blog post.

It's a Rails 4.1.6 app with SQLite3. To get it running, do the following:

git clone git@github.com:marcinbunsch/service-objects-example.git
cd service-objects-example/
bundle
bin/rake db:migrate
bundle exec rspec spec

License

It's a sample. You are free to do whatever you want to this code.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request