Sha256: 9873dfa812b9c7b8d35870789b2c18df9d9a42696a608cfb0644c532449d3510
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 Bytes
Contents
module Lifestream class Branch attr_accessor :channel, :published_at, :title, :body def initialize channel, published_at, title, body = nil @channel, @published_at, @title, @body = channel, published_at, title, body unless @channel.kind_of?(Lifestream::Channel) raise Lifestream::Branch::InvalidBranch.new('@channel is not a kind if Lifestream::Channel') end end def inspect "#<Lifestream::Branch @published_at=#{@published_at} @title=#{@title} @body=#{@body} @channel=#{!!@channel}>" end class InvalidBranch < StandardError; end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lifestream-0.1.5 | lib/lifestream/branch.rb |
lifestream-0.1.4 | lib/lifestream/branch.rb |
lifestream-0.1.3 | lib/lifestream/branch.rb |