Class: Hatena::Bookmark::Restful::V1::Tag

Inherits:
Object
  • Object
show all
Includes:
ResponseObject
Defined in:
lib/hatena/bookmark/restful/v1/tag.rb

Constant Summary collapse

PROPERTIES =
[:tag, :count, :modified_epoch, :modified_datetime]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ResponseObject

#==, #[], included, #initialize, #to_hash

Instance Attribute Details

#countInteger (readonly)

The number of bookmarks with the tag

Returns:

  • (Integer)


24
# File 'lib/hatena/bookmark/restful/v1/tag.rb', line 24

PROPERTIES = [:tag, :count, :modified_epoch, :modified_datetime]

#modified_datetimeString (readonly)

ISO 8601 representation of the last modified time

Returns:

  • (String)


24
# File 'lib/hatena/bookmark/restful/v1/tag.rb', line 24

PROPERTIES = [:tag, :count, :modified_epoch, :modified_datetime]

#modified_epochInteger (readonly)

UNIX epoch of the last modified time

Returns:

  • (Integer)


24
# File 'lib/hatena/bookmark/restful/v1/tag.rb', line 24

PROPERTIES = [:tag, :count, :modified_epoch, :modified_datetime]

#tagString (readonly)

The name of tag

Returns:

  • (String)


24
# File 'lib/hatena/bookmark/restful/v1/tag.rb', line 24

PROPERTIES = [:tag, :count, :modified_epoch, :modified_datetime]

Instance Method Details

#modified_atTime

The last modified time

Returns:

  • (Time)


30
31
32
# File 'lib/hatena/bookmark/restful/v1/tag.rb', line 30

def modified_at
  Time.at(self.modified_epoch)
end