Skip to content

Instantly share code, notes, and snippets.

@bezelga
Created September 3, 2014 15:28
Show Gist options
  • Save bezelga/8252e3498d7cf294c024 to your computer and use it in GitHub Desktop.
Save bezelga/8252e3498d7cf294c024 to your computer and use it in GitHub Desktop.
module Tod
module Entities
class Task
attr_accessor :id
attr_reader :title
def initialize(title: '')
@title = title
end
def valid?
String(title).length > 0
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment