Sha256: dbb9029de77373a52c4c38a2c7977920a78cedc7f0f8b5116fe908fe5c0ca1f4

Contents?: true

Size: 943 Bytes

Versions: 11

Compression:

Stored size: 943 Bytes

Contents

module Writer
  module Fetcher
    module Microdata
      class PersonUser
        attr_accessor :source

        def initialize the_source
          @source = the_source
        end

        def hash
          @attributes = @source.attributes
          {
            "type" => [
              @source._type
            ],
            "properties" => {
              "additionalType" => [
                @attributes[:additionalType]
              ],
              "Item#id" => [
                @attributes[:id]
              ],
              "name" => [
                @attributes[:name]
              ],
              "User#dateRegistered" => [
                @attributes[:dateRegistered]
              ],
              "description" => [
                @attributes[:description]
              ],
              "url" => [
                @attributes[:url]
              ]
            }
          }
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fetcher-microdata-0.0.11 lib/writer/fetcher-microdata/person_user.rb
fetcher-microdata-0.0.10 lib/writer/fetcher-microdata/person_user.rb
fetcher-microdata-0.0.9 lib/writer/fetcher-microdata/person_user.rb
fetcher-microdata-0.0.8 lib/writer/fetcher-microdata/person_user.rb
fetcher-microdata-0.0.7 lib/writer/fetcher-microdata/person_user.rb
fetcher-microdata-0.0.6 lib/writer/fetcher-microdata/person_user.rb
fetcher-microdata-0.0.5 lib/writer/fetcher-microdata/person_user.rb
fetcher-microdata-0.0.4 lib/writer/fetcher-microdata/person_user.rb
fetcher-microdata-0.0.3 lib/writer/fetcher-microdata/person_user.rb
fetcher-microdata-0.0.2 lib/writer/fetcher-microdata/person_user.rb
fetcher-microdata-0.0.1 lib/writer/fetcher-microdata/person_user.rb