class Shinybooru::Post
Used internally
Attributes
data[R]
Public Class Methods
new(nokogiri_data)
click to toggle source
# File lib/shinybooru.rb, line 87 def initialize(nokogiri_data) @data = {} nokogiri_data.attribute_nodes.each do |node| @data[node.name.to_sym] = if node.name == 'tags' # so that the tags are a list node.value.split ' ' else node.value end data end end