class MyAnimeList::Serializer

Attributes

response[RW]

Public Class Methods

new(resp) click to toggle source
# File lib/myanimelist/serializer.rb, line 5
def initialize(resp)
  @response = resp
end

Public Instance Methods

call() click to toggle source
# File lib/myanimelist/serializer.rb, line 14
def call
  XmlSimple.xml_in(response, force_array: false)
end
entry() click to toggle source
# File lib/myanimelist/serializer.rb, line 9
def entry
  hash = XmlSimple.xml_in(response, force_array: false)
  hash['entry']
end