Class: SlackBigEmoji::Uploader
- Inherits:
-
Object
- Object
- SlackBigEmoji::Uploader
- Defined in:
- lib/slack_big_emoji/uploader.rb
Constant Summary collapse
- BASE_DIR =
File.(File.dirname(__FILE__))
Instance Attribute Summary collapse
-
#agent ⇒ Object
Returns the value of attribute agent.
-
#page ⇒ Object
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(dir) ⇒ Uploader
constructor
A new instance of Uploader.
- #upload_emojis ⇒ Object
Constructor Details
#initialize(dir) ⇒ Uploader
Returns a new instance of Uploader.
9 10 11 12 13 |
# File 'lib/slack_big_emoji/uploader.rb', line 9 def initialize(dir) @dir = dir @page = nil @agent = Mechanize.new end |
Instance Attribute Details
#agent ⇒ Object
Returns the value of attribute agent.
14 15 16 |
# File 'lib/slack_big_emoji/uploader.rb', line 14 def agent @agent end |
#page ⇒ Object
Returns the value of attribute page.
14 15 16 |
# File 'lib/slack_big_emoji/uploader.rb', line 14 def page @page end |
Instance Method Details
#upload_emojis ⇒ Object
16 17 18 19 |
# File 'lib/slack_big_emoji/uploader.rb', line 16 def upload_emojis move_to_emoji_page push_emojis end |