Sha256: 940a9c1b41643b4831d242dbb35918a4f0212a7808b0bfa5f543fbeca1fadada

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
require 'facegroup'

group_id = ARGV[0] || '150352985174571'
group = FaceGroup::Group.find(id: group_id)

puts group.name
puts group.name.length.times.map {'-'}.join
group.feed.postings.first(3).each.with_index do |post, index|
  print "#{index+1}: "
  puts post.message ? post.message : '(blank)'
  if post.attachment
    puts "Attached: #{post.attachment.url}"
  end
  puts
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facegroup-0.1.0 bin/facegroup