lib/boppers/notifier/twitter.rb in boppers-0.0.10 vs lib/boppers/notifier/twitter.rb in boppers-0.0.11
- old
+ new
@@ -1,13 +1,24 @@
# frozen_string_literal: true
module Boppers
module Notifier
class Twitter
- attr_reader :consumer_key, :consumer_secret,
- :access_token, :access_secret, :user, :subscribe
+ attr_reader :consumer_key,
+ :consumer_secret,
+ :access_token,
+ :access_secret,
+ :user,
+ :subscribe
- def initialize(consumer_key:, consumer_secret:, access_token:, access_secret:, user:, subscribe: nil)
+ def initialize(
+ consumer_key:,
+ consumer_secret:,
+ access_token:,
+ access_secret:,
+ user:,
+ subscribe: nil
+ )
require "twitter"
@consumer_key = consumer_key
@consumer_secret = consumer_secret
@access_token = access_token