Class: Uploader
- Inherits:
-
Object
- Object
- Uploader
- Defined in:
- lib/postype_rails/uploader.rb
Instance Method Summary collapse
-
#initialize(cookie, blog_id, title, content) ⇒ Uploader
constructor
A new instance of Uploader.
- #upload ⇒ Object
Constructor Details
#initialize(cookie, blog_id, title, content) ⇒ Uploader
Returns a new instance of Uploader.
5 6 7 8 9 10 |
# File 'lib/postype_rails/uploader.rb', line 5 def initialize(, blog_id, title, content) @cookie = @blog_id = blog_id @title = title @content = content end |
Instance Method Details
#upload ⇒ Object
12 13 14 15 16 |
# File 'lib/postype_rails/uploader.rb', line 12 def upload @post_id = posting saving publish end |