Class: CrossPost
- Inherits:
-
Object
- Object
- CrossPost
- Defined in:
- lib/cross-post.rb,
lib/cross-post/config.rb,
lib/cross-post/version.rb,
lib/cross-post/mastodon.rb,
lib/cross-post/twitter.rb
Defined Under Namespace
Classes: Config, Mastodon, Twitter
Constant Summary collapse
- LOGGER =
Logger.new STDERR
- VERSION =
'0.2.0'.freeze
Instance Attribute Summary collapse
-
#mastodon ⇒ Object
readonly
Returns the value of attribute mastodon.
-
#twitter ⇒ Object
readonly
Returns the value of attribute twitter.
Class Method Summary collapse
Instance Method Summary collapse
- #feed ⇒ Object
-
#initialize ⇒ CrossPost
constructor
A new instance of CrossPost.
Constructor Details
Instance Attribute Details
#mastodon ⇒ Object (readonly)
Returns the value of attribute mastodon.
20 21 22 |
# File 'lib/cross-post.rb', line 20 def mastodon @mastodon end |
#twitter ⇒ Object (readonly)
Returns the value of attribute twitter.
20 21 22 |
# File 'lib/cross-post.rb', line 20 def twitter @twitter end |
Class Method Details
.feed ⇒ Object
32 33 34 |
# File 'lib/cross-post.rb', line 32 def self.feed self.new.feed end |
Instance Method Details
#feed ⇒ Object
28 29 30 |
# File 'lib/cross-post.rb', line 28 def feed @mastodon.feed @twitter end |