Sha256: 0119b09f795a4dca85db548369dd674bb22a7c5b424adb127c6d8e8d7a6f52cc

Contents?: true

Size: 476 Bytes

Versions: 3

Compression:

Stored size: 476 Bytes

Contents

module XwotDiscovery

  class Message

    attr_reader :method, :payload, :location,
                :content_type, :protocol, :urn, :hostname, :host

    def initialize(a_hash)
      @method = a_hash[:method]
      @location = a_hash[:location]
      @content_type = a_hash[:content_type]
      @payload = a_hash[:payload]
      @protocol = a_hash[:protocol] || ''
      @urn = a_hash[:urn]
      @host = a_hash[:host]
      @hostname = a_hash[:hostname]
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xwot_discovery-0.1.1 lib/xwot_discovery/message.rb
xwot_discovery-0.1.0 lib/xwot_discovery/message.rb
xwot_discovery-0.1.0.pre lib/xwot_discovery/message.rb