class DaashubAPI::BatchFile

Public Instance Methods

created_at() click to toggle source
# File lib/daashub_api/batch_file.rb, line 13
def created_at
  attr_to_date(:created_at)
end
finished_at() click to toggle source
# File lib/daashub_api/batch_file.rb, line 9
def finished_at
  attr_to_date(:finished_at)
end
started_at() click to toggle source
# File lib/daashub_api/batch_file.rb, line 5
def started_at
  attr_to_date(:started_at)
end

Private Instance Methods

attr_to_date(attr_name) click to toggle source
# File lib/daashub_api/batch_file.rb, line 19
def attr_to_date(attr_name)
  (date = @attributes[attr_name]) && Time.parse(date)
end