Sha256: f0e36eeab807f59340601dc73451d851e00e100cfb41d109314d6bef6b0b019c
Contents?: true
Size: 974 Bytes
Versions: 5
Compression:
Stored size: 974 Bytes
Contents
module PinPress # A template for outputting Pinboard data class Template # Defines a pin template # @return [Fixnum] TEMPLATE_TYPE_PIN = 1 # Defines a tag template # @return [Fixnum] TEMPLATE_TYPE_TAG = 2 # Holds the "closer" (the string that # should come after all template items # are output) # @return [String] attr_accessor :closer # Holds the string that defines what # an item should look like. # @return [String] attr_accessor :item # Holds the name of the template. # @return [String] attr_accessor :name # Holds the "opener" (the string that # should come before all template items # are output) # @return [String] attr_accessor :opener # Initializes this class by ingesting # passed parameters. # @param [Hash] params # @return [void] def initialize(params = {}) params.each { |key, value| send("#{ key }=", value) } end end end
Version data entries
5 entries across 5 versions & 1 rubygems