Class: Echonest::ForeignId
- Inherits:
-
Object
- Object
- Echonest::ForeignId
- Defined in:
- lib/echonest-ruby-api/foreign_id.rb
Instance Attribute Summary collapse
-
#catalog ⇒ Object
Returns the value of attribute catalog.
-
#catalog_id ⇒ Object
Returns the value of attribute catalog_id.
-
#foreign_id ⇒ Object
Returns the value of attribute foreign_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ForeignId
constructor
A new instance of ForeignId.
Constructor Details
#initialize(options = {}) ⇒ ForeignId
Returns a new instance of ForeignId.
6 7 8 9 10 |
# File 'lib/echonest-ruby-api/foreign_id.rb', line 6 def initialize( = {}) @catalog = [:catalog] @foreign_id = [:foreign_id] @catalog_id = foreign_id.split(":").last end |
Instance Attribute Details
#catalog ⇒ Object
Returns the value of attribute catalog.
4 5 6 |
# File 'lib/echonest-ruby-api/foreign_id.rb', line 4 def catalog @catalog end |
#catalog_id ⇒ Object
Returns the value of attribute catalog_id.
4 5 6 |
# File 'lib/echonest-ruby-api/foreign_id.rb', line 4 def catalog_id @catalog_id end |
#foreign_id ⇒ Object
Returns the value of attribute foreign_id.
4 5 6 |
# File 'lib/echonest-ruby-api/foreign_id.rb', line 4 def foreign_id @foreign_id end |