Class: Rapa::AlternateVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/rapa/alternate_version.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ AlternateVersion

Returns a new instance of AlternateVersion.

Parameters:

  • source (Hash)


7
8
9
# File 'lib/rapa/alternate_version.rb', line 7

def initialize(source)
  @source = source
end

Instance Attribute Details

#sourceHash (readonly)

Returns:

  • (Hash)


4
5
6
# File 'lib/rapa/alternate_version.rb', line 4

def source
  @source
end

Instance Method Details

#asinString

Returns:

  • (String)


12
13
14
# File 'lib/rapa/alternate_version.rb', line 12

def asin
  source["ASIN"]
end

#bindingString

Returns:

  • (String)


17
18
19
# File 'lib/rapa/alternate_version.rb', line 17

def binding
  source["Binding"]
end

#titleString

Returns:

  • (String)


22
23
24
# File 'lib/rapa/alternate_version.rb', line 22

def title
  source["Title"]
end