Sha256: 8751b34f4a68d3ca25c13a017c267b13f7c5cff8dc92968bf20d509e9cf6b928
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
module Thanos class Character attr_reader :id, :name, :description, :resource_uri, :urls, :thumbnail, :comics, :stories, :events, :series def initialize(args) @comics = args[:comics] @series = args[:series] @events = args[:events] @stories = args[:stories] @urls = args[:urls] @thumbnail = args[:thumbnail] args[:attributes].each do |attribute, value| instance_variable_set("@#{attribute}", value) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thanos-0.6.0 | lib/thanos/resources/character.rb |
thanos-0.5.0 | lib/thanos/resources/character.rb |