Sha256: 9285919f9c849e287a440e1a4d58200ccc840096d4daf00b2f2f79e6f82683b7

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

module Rapa
  module Resources
    class BrowseNodeResource < BaseResource
      # @return [String]
      def asin
        source["ASIN"]
      end

      # @return [String]
      def author
        source["Author"]
      end

      # @return [Boolean]
      def ebook?
        source["ProductGroup"] == "eBooks"
      end

      # @return [String]
      def product_group
        source["ProductGroup"]
      end

      # @return [String]
      def title
        source["Title"]
      end

      # @return [String]
      def url_details_page
        source["DetailPageURL"]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapa-0.6.0 lib/rapa/resources/browse_node_resource.rb