class Mrt::Ingest::Response
Public Class Methods
new(data)
click to toggle source
# File lib/mrt/ingest/response.rb, line 12 def initialize(data) @parsed = JSON.parse(data)['bat:batchState'] end
Public Instance Methods
batch_id()
click to toggle source
# File lib/mrt/ingest/response.rb, line 16 def batch_id @parsed['bat:batchID'] end
submission_date()
click to toggle source
# File lib/mrt/ingest/response.rb, line 24 def submission_date Time.parse(@parsed['bat:submissionDate']) end
user_agent()
click to toggle source
# File lib/mrt/ingest/response.rb, line 20 def user_agent @parsed['bat:userAgent'] end