class Trio::Blog::API::PostReader
Public Instance Methods
attributes()
click to toggle source
# File lib/trio/blog/api/post_reader.rb, line 9 def attributes @attributes ||= PostAttributes.new(selectors, document, config) end
selectors()
click to toggle source
# File lib/trio/blog/api/post_reader.rb, line 5 def selectors @selectors ||= PostSelectors.new(document, config) end
to_h()
click to toggle source
# File lib/trio/blog/api/post_reader.rb, line 13 def to_h { title: attributes.title, thumbnail_image_url: attributes.thumbnail_image_url, post_url: attributes.post_url, author: { name: attributes.author_name, avatar_image_url: attributes.author_avatar_image_url } } end