Sha256: 1507868ccd3be01da46473c54d8d53d98ff68f16ec99b6b227dadf707bb78876

Contents?: true

Size: 450 Bytes

Versions: 6

Compression:

Stored size: 450 Bytes

Contents

module Bobot
  module Subscription
    include Bobot::GraphFacebook

    def get(query:)
      graph_get "/me/subscribed_apps", query: query
    end
    module_function :get
  
    def set(query:)
      graph_post "/#{query.fetch(:page_id)}/subscribed_apps", query: query
    end
    module_function :set

    def unset(query:)
      graph_delete "/#{query.fetch(:page_id)}/subscribed_apps", query: query
    end
    module_function :unset
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bobot-4.4.1 lib/bobot/subscription.rb
bobot-4.4.0 lib/bobot/subscription.rb
bobot-4.3.1 lib/bobot/subscription.rb
bobot-4.3.0 lib/bobot/subscription.rb
bobot-4.2.0 lib/bobot/subscription.rb
bobot-4.1.0 lib/bobot/subscription.rb