Sha256: e393554d697db33cc1a54ac8efae5b1abe733b817226516322208d9e6c7718d0
Contents?: true
Size: 351 Bytes
Versions: 3
Compression:
Stored size: 351 Bytes
Contents
module XwotDiscovery class XwotResource attr_reader :description, :urn, :interface, :location def initialize(a_hash) @urn = a_hash[:urn] @location = a_hash[:location] @interface = a_hash[:interface] @description = a_hash[:description] end def payload JSON.generate(@description) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xwot_discovery-0.1.1 | lib/xwot_discovery/resource.rb |
xwot_discovery-0.1.0 | lib/xwot_discovery/resource.rb |
xwot_discovery-0.1.0.pre | lib/xwot_discovery/resource.rb |