Class: Enklawa::Api::Episode
- Inherits:
-
Struct
- Object
- Struct
- Enklawa::Api::Episode
- Defined in:
- lib/enklawa/api/episode.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#id ⇒ Object
Returns the value of attribute id.
-
#image ⇒ Object
Returns the value of attribute image.
-
#link ⇒ Object
Returns the value of attribute link.
-
#mp3 ⇒ Object
Returns the value of attribute mp3.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pub_date ⇒ Object
Returns the value of attribute pub_date.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
6 7 8 |
# File 'lib/enklawa/api/episode.rb', line 6 def description @description end |
#duration ⇒ Object
Returns the value of attribute duration
6 7 8 |
# File 'lib/enklawa/api/episode.rb', line 6 def duration @duration end |
#id ⇒ Object
Returns the value of attribute id
6 7 8 |
# File 'lib/enklawa/api/episode.rb', line 6 def id @id end |
#image ⇒ Object
Returns the value of attribute image
6 7 8 |
# File 'lib/enklawa/api/episode.rb', line 6 def image @image end |
#link ⇒ Object
Returns the value of attribute link
6 7 8 |
# File 'lib/enklawa/api/episode.rb', line 6 def link @link end |
#mp3 ⇒ Object
Returns the value of attribute mp3
6 7 8 |
# File 'lib/enklawa/api/episode.rb', line 6 def mp3 @mp3 end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/enklawa/api/episode.rb', line 6 def name @name end |
#pub_date ⇒ Object
Returns the value of attribute pub_date
6 7 8 |
# File 'lib/enklawa/api/episode.rb', line 6 def pub_date @pub_date end |
Instance Method Details
#to_h ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/enklawa/api/episode.rb', line 8 def to_h { id: id.to_i, name: name, description: description, mp3: mp3, pub_date: pub_date.utc.iso8601, link: link, duration: duration, image: image } end |