Sha256: 1431e74353c539fd84546320cb6d2c5ed9cc9200e91c93f63acbc9b4f95eae2a

Contents?: true

Size: 199 Bytes

Versions: 3

Compression:

Stored size: 199 Bytes

Contents

module Pinboard
  class Tag < Struct.new(:tag, :count)
    def initialize(attributes={})
      self.tag = attributes.delete(:tag)
      self.count  = attributes.delete(:count).to_i
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pinboard-1.0.0 lib/pinboard/tag.rb
pinboard-0.1.1 lib/pinboard/tag.rb
pinboard-0.1.0 lib/pinboard/tag.rb