Class: Hatena::Bookmark::Restful::V1::Tag
- Inherits:
-
Object
- Object
- Hatena::Bookmark::Restful::V1::Tag
- 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
-
#count ⇒ Integer
readonly
The number of bookmarks with the tag.
-
#modified_datetime ⇒ String
readonly
ISO 8601 representation of the last modified time.
-
#modified_epoch ⇒ Integer
readonly
UNIX epoch of the last modified time.
-
#tag ⇒ String
readonly
The name of tag.
Instance Method Summary collapse
-
#modified_at ⇒ Time
The last modified time.
Methods included from ResponseObject
#==, #[], included, #initialize, #to_hash
Instance Attribute Details
#count ⇒ Integer (readonly)
The number of bookmarks with the tag
24 |
# File 'lib/hatena/bookmark/restful/v1/tag.rb', line 24 PROPERTIES = [:tag, :count, :modified_epoch, :modified_datetime] |
#modified_datetime ⇒ String (readonly)
ISO 8601 representation of the last modified time
24 |
# File 'lib/hatena/bookmark/restful/v1/tag.rb', line 24 PROPERTIES = [:tag, :count, :modified_epoch, :modified_datetime] |
#modified_epoch ⇒ Integer (readonly)
UNIX epoch of the last modified time
24 |
# File 'lib/hatena/bookmark/restful/v1/tag.rb', line 24 PROPERTIES = [:tag, :count, :modified_epoch, :modified_datetime] |
#tag ⇒ String (readonly)
The name of tag
24 |
# File 'lib/hatena/bookmark/restful/v1/tag.rb', line 24 PROPERTIES = [:tag, :count, :modified_epoch, :modified_datetime] |
Instance Method Details
#modified_at ⇒ Time
The last modified time
30 31 32 |
# File 'lib/hatena/bookmark/restful/v1/tag.rb', line 30 def modified_at Time.at(self.modified_epoch) end |