class Atom::Entry

Public Instance Methods

add_control(control) click to toggle source
# File lib/atomutil.rb, line 1014
def add_control(control)
  add(Namespace::APP_WITH_PREFIX, 'control', control)
end
content() click to toggle source
# File lib/atomutil.rb, line 1043
def content
  get_object(@ns, 'content', Content)
end
content=(value) click to toggle source
# File lib/atomutil.rb, line 1047
def content=(value)
  unless value.is_a?(Content)
    value = Content.new(:body => value)
  end
  set(@ns, 'content', value)
end
control() click to toggle source
# File lib/atomutil.rb, line 1006
def control
  get_object(Namespace::APP_WITH_PREFIX, 'control', Control)
end
control=(control) click to toggle source
# File lib/atomutil.rb, line 1010
def control=(control)
  set(Namespace::APP_WITH_PREFIX, 'control', control)
end
controls() click to toggle source
# File lib/atomutil.rb, line 1018
def controls
  get_objects(Namespace::APP_WITH_PREFIX, 'control', Control)
end
controls=(control) click to toggle source
# File lib/atomutil.rb, line 1022
def controls=(control)
  control = control
end
edited() click to toggle source
# File lib/atomutil.rb, line 1026
def edited
  get(Namespace::APP_WITH_PREFIX, 'edited')
end
edited=(value) click to toggle source
# File lib/atomutil.rb, line 1030
def edited=(value)
  set(Namespace::APP_WITH_PREFIX, 'edited', value)
end
in_reply_to(value=nil) click to toggle source
# File lib/atomutil.rb, line 1054
def in_reply_to(value=nil)
  if value.nil?
    get_object(Namespace::THR, 'in-reply-to', ReplyTarget)
  else
    value = ReplyTarget.new(value) if value.is_a?(Hash)
    set(Namespace::THR, 'in-reply-to', value)
  end
end
total() click to toggle source
# File lib/atomutil.rb, line 1034
def total
  value = get(Namespace::THR, 'total')
  value.nil?? nil : value.to_i
end
total=(value) click to toggle source
# File lib/atomutil.rb, line 1039
def total=(value)
  set(Namespace::THR, 'total', value.to_s)
end