Class: Rapa::AlternateVersion
- Inherits:
-
Object
- Object
- Rapa::AlternateVersion
- Defined in:
- lib/rapa/alternate_version.rb
Instance Attribute Summary collapse
- #source ⇒ Hash readonly
Instance Method Summary collapse
- #asin ⇒ String
- #binding ⇒ String
-
#initialize(source) ⇒ AlternateVersion
constructor
A new instance of AlternateVersion.
- #title ⇒ String
Constructor Details
#initialize(source) ⇒ AlternateVersion
Returns a new instance of AlternateVersion.
7 8 9 |
# File 'lib/rapa/alternate_version.rb', line 7 def initialize(source) @source = source end |
Instance Attribute Details
#source ⇒ Hash (readonly)
4 5 6 |
# File 'lib/rapa/alternate_version.rb', line 4 def source @source end |
Instance Method Details
#asin ⇒ String
12 13 14 |
# File 'lib/rapa/alternate_version.rb', line 12 def asin source["ASIN"] end |
#binding ⇒ String
17 18 19 |
# File 'lib/rapa/alternate_version.rb', line 17 def binding source["Binding"] end |
#title ⇒ String
22 23 24 |
# File 'lib/rapa/alternate_version.rb', line 22 def title source["Title"] end |