class AmazonDrs::SubscriptionInfo
Attributes
slots[RW]
Public Instance Methods
parse_body(body)
click to toggle source
# File lib/amazon-drs/subscription_info.rb, line 8 def parse_body(body) json = JSON.parse(body) @slots = {} json['slotsSubscriptionStatus'].each_pair do |slot_id, available| @slots[slot_id] = available end end