class Atom::RepliesLink

Public Class Methods

new(params={}) click to toggle source
Calls superclass method Atom::Element::new
# File lib/atomutil.rb, line 697
def initialize(params={})
  super(params)
  @elem.add_namespace(Namespace::THR.prefix, Namespace::THR.uri)
  set_attr('rel', 'replies')
end

Public Instance Methods

count() click to toggle source
# File lib/atomutil.rb, line 706
def count
  num = get_attr('thr:count')
  num.nil?? nil : num.to_i
end
count=(num) click to toggle source
# File lib/atomutil.rb, line 711
def count=(num)
  set_attr('thr:count', num.to_s)
end
rel=(name) click to toggle source
# File lib/atomutil.rb, line 703
def rel=(name)
end
updated() click to toggle source
# File lib/atomutil.rb, line 715
def updated
  value = get_attr('thr:updated')
  value.nil?? nil : Time.iso8601(value)
end
updated=(time) click to toggle source
# File lib/atomutil.rb, line 720
def updated=(time)
  time = time.iso8601 if time.instance_of?(Time)
  set_attr('thr:updated', time)
end