Sha256: a5cc8cc601fc7ad2ef93bd4a489c3ea3f22531bd8f22de23713196614dbf0169
Contents?: true
Size: 421 Bytes
Versions: 24
Compression:
Stored size: 421 Bytes
Contents
$:.unshift('./lib') require 'rubygems' require 'socialcastr' Socialcastr.configuration do |c| c.config_file = File.join(File.dirname(__FILE__), "socialcast.yml") end message = Socialcastr::Message.new( :title => "hello world", :body => "yet another message") puts "message created: #{message.to_params.inspect}" message.save puts "message now is #{ message.new? ? "still new" : "persisted"} with id #{message.id}"
Version data entries
24 entries across 24 versions & 1 rubygems