Class: AkaArray
- Inherits:
-
Object
- Object
- AkaArray
- Defined in:
- lib/tvrage_api/utility/aka_array.rb
Class Method Summary collapse
Class Method Details
.coerce(value) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/tvrage_api/utility/aka_array.rb', line 2 def self.coerce(value) if value.is_a?(Array) value else value.aka.map{ |aka| TvrageApi::Element.new(content: aka.__content__, country: aka.country) } end end |