Sha256: 32cdfc5674f59f44f60fa26afce5a9ecdf33d5fb6a69548752d177f8d3df592e

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

##
# NPR::Entity::Link
#
module NPR
  module Entity
    class Link < Base
      attr_accessor :type, :content
      
      #---------------------
    
      def initialize(json)
        @content = json["$text"]
        @type    = json["type"]
      end

      #---------------------
    
      def to_s
        @content.to_s
      end
    end # Link
  end # Entity
end # NPR

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
npr-1.1.0 lib/npr/entity/link.rb