Sha256: 2bc442d276cb6570ef90e1d3c9e5798eae349ddec75aedfa2deb698f9b7d35c8
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w(.. lib)) require 'facegroup' group_id = ARGV[0] || ENV['FB_GROUP_ID'] unless group_id puts 'USAGE: facegroup [group_id]' exit(1) end group = FaceGroup::Group.find(id: group_id) puts group.name puts Array.new(group.name.length) { '-' }.join group.feed.postings.first(3).each.with_index do |post, index| print "#{index + 1}: " puts post.message ? post.message : '(blank)' puts "Attached: #{post.attachment.url}" if post.attachment puts end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facegroup-0.2.0 | bin/facegroup |