Sha256: 5b0bc8b0eef733b1396518b211dc0f28619b2c281b460eb5cc3152125be4efa4
Contents?: true
Size: 461 Bytes
Versions: 3
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true require_relative 'fb_api' require_relative 'feed' module FaceGroups # Main class to setup a Facebook group class Group attr_reader :id, :name, :feed def initialize(group_data:) @name = group_data['name'] @id = group_data['id'] @feed = Feed.new(feed_data: group_data['feed']) end def self.find(id:) group_data = FbApi.group_data(id) new(group_data: group_data) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facegroups-0.2.1 | lib/facegroups/group.rb |
facegroups-0.2.0 | lib/facegroups/group.rb |
facegroups-0.1.0 | lib/facegroups/group.rb |