Class: Rapa::Resources::BrowseNodeResource

Inherits:
BaseResource show all
Defined in:
lib/rapa/resources/browse_node_resource.rb

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize, #source

Constructor Details

This class inherits a constructor from Rapa::Resources::BaseResource

Instance Method Details

#asinString

Returns:

  • (String)


5
6
7
# File 'lib/rapa/resources/browse_node_resource.rb', line 5

def asin
  source["ASIN"]
end

#authorString

Returns:

  • (String)


10
11
12
# File 'lib/rapa/resources/browse_node_resource.rb', line 10

def author
  source["Author"]
end

#ebook?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/rapa/resources/browse_node_resource.rb', line 15

def ebook?
  source["ProductGroup"] == "eBooks"
end

#product_groupString

Returns:

  • (String)


20
21
22
# File 'lib/rapa/resources/browse_node_resource.rb', line 20

def product_group
  source["ProductGroup"]
end

#titleString

Returns:

  • (String)


25
26
27
# File 'lib/rapa/resources/browse_node_resource.rb', line 25

def title
  source["Title"]
end

#url_details_pageString

Returns:

  • (String)


30
31
32
# File 'lib/rapa/resources/browse_node_resource.rb', line 30

def url_details_page
  source["DetailPageURL"]
end