tumblrb 1.0.6 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/tumblr/user.rb DELETED
@@ -1,11 +0,0 @@
1
- module Tumblr
2
- class User
3
- attr_accessor :email, :password, :tumblr
4
-
5
- # creates a User object and authenticates the user through the Tumblr API to get user data.
6
- def initialize(email, password)
7
- self.email = email
8
- self.password = password
9
- end
10
- end
11
- end
data/lib/tumblr/video.rb DELETED
@@ -1,23 +0,0 @@
1
- module Tumblr
2
- class Video < Item
3
- attr_accessor :caption, :source, :player
4
-
5
- def as_json
6
- super.merge!({
7
- :caption => caption,
8
- :source => source,
9
- :player => player
10
- })
11
- end
12
-
13
- private
14
-
15
- def parse_xml_node(node)
16
- super(node)
17
- self.caption = node.css('video-title').first.try(:content)
18
- self.source = node.css('video-text').first.try(:content)
19
- self.player = node.css('video-player').first.try(:content)
20
- self
21
- end
22
- end
23
- end