Class: Rumblr::Tumblelog
Instance Attribute Summary collapse
-
#avatar_url ⇒ Object
readonly
Returns the value of attribute avatar_url.
-
#cname ⇒ Object
readonly
Returns the value of attribute cname.
-
#is_primary ⇒ Object
readonly
Returns the value of attribute is_primary.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#private_id ⇒ Object
readonly
Returns the value of attribute private_id.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Rumblr::Resource
Instance Attribute Details
#avatar_url ⇒ Object (readonly)
Returns the value of attribute avatar_url.
4 5 6 |
# File 'lib/rumblr/tumblelog.rb', line 4 def avatar_url @avatar_url end |
#cname ⇒ Object (readonly)
Returns the value of attribute cname.
4 5 6 |
# File 'lib/rumblr/tumblelog.rb', line 4 def cname @cname end |
#is_primary ⇒ Object (readonly)
Returns the value of attribute is_primary.
4 5 6 |
# File 'lib/rumblr/tumblelog.rb', line 4 def is_primary @is_primary end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/rumblr/tumblelog.rb', line 4 def name @name end |
#private_id ⇒ Object (readonly)
Returns the value of attribute private_id.
4 5 6 |
# File 'lib/rumblr/tumblelog.rb', line 4 def private_id @private_id end |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone.
4 5 6 |
# File 'lib/rumblr/tumblelog.rb', line 4 def timezone @timezone end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/rumblr/tumblelog.rb', line 4 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/rumblr/tumblelog.rb', line 4 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/rumblr/tumblelog.rb', line 4 def url @url end |
#user ⇒ Object
Returns the value of attribute user.
6 7 8 |
# File 'lib/rumblr/tumblelog.rb', line 6 def user @user end |
Class Method Details
.find_by_url(url) ⇒ Object
20 21 22 23 |
# File 'lib/rumblr/tumblelog.rb', line 20 def find_by_url(url) log, posts = Client.instance.read(:url => url) return log end |
Instance Method Details
#posts ⇒ Object
8 9 10 11 12 |
# File 'lib/rumblr/tumblelog.rb', line 8 def posts return [] unless self.url log, posts = Client.instance.read({:url => self.url}.merge(self.user.auth)) return posts end |
#primary? ⇒ Boolean
14 15 16 |
# File 'lib/rumblr/tumblelog.rb', line 14 def primary? is_primary == "yes" end |