Class: Uploader

Inherits:
Object
  • Object
show all
Defined in:
lib/postype_rails/uploader.rb

Instance Method Summary collapse

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(cookie, blog_id, title, content)
  @cookie = cookie
  @blog_id = blog_id
  @title = title
  @content = content
end

Instance Method Details

#uploadObject



12
13
14
15
16
# File 'lib/postype_rails/uploader.rb', line 12

def upload
  @post_id = posting
  saving
  publish
end