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

Version Path
socialcastr-0.2.19 examples/post_message.rb
socialcastr-0.2.18 examples/post_message.rb
socialcastr-0.2.17 examples/post_message.rb
socialcastr-0.2.16 examples/post_message.rb
socialcastr-0.2.15 examples/post_message.rb
socialcastr-0.2.14 examples/post_message.rb
socialcastr-0.2.13 examples/post_message.rb
socialcastr-0.2.12 examples/post_message.rb
socialcastr-0.2.11 examples/post_message.rb
socialcastr-0.2.10 examples/post_message.rb
socialcastr-0.2.9 examples/post_message.rb
socialcastr-0.2.8 examples/post_message.rb
socialcastr-0.2.7 examples/post_message.rb
socialcastr-0.2.6 examples/post_message.rb
socialcastr-0.2.5 examples/post_message.rb
socialcastr-0.2.4 examples/post_message.rb
socialcastr-0.2.3 examples/post_message.rb
socialcastr-0.2.2 examples/post_message.rb
socialcastr-0.2.1 examples/post_message.rb
socialcastr-0.2.0 examples/post_message.rb