Sha256: 829084aafa13f90e256e6e5732ac3057ccc7bd47d8712aae624bd14aded1596f
Contents?: true
Size: 740 Bytes
Versions: 2
Compression:
Stored size: 740 Bytes
Contents
module Thanos class Event attr_reader :id, :title, :description, :resource_uri, :start, :end, :urls, :thumbnail, :series, :stories, :events, :comics, :characters, :creators, :next, :previous def initialize(args) @creators = args[:creators] @characters = args[:characters] @series = args[:series] @stories = args[:stories] @events = args[:events] @comics = args[:comics] @urls = args[:urls] @thumbnail = args[:thumbnail] @start = args[:start] @end = args[:_end] @next = args[:next] @previous = args[:previous] 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/event.rb |
thanos-0.5.0 | lib/thanos/resources/event.rb |