Sha256: 7112ae8405f219b571e93c8c176ed0b64888a82e47fa44fed1579c2cdc449492
Contents?: true
Size: 601 Bytes
Versions: 4
Compression:
Stored size: 601 Bytes
Contents
module Validic class Summary attr_reader :timestamp, :start_date, :end_date, :offset, :message, :results, :limit, :previous, :next, :status def initialize(sum_hash) sum_hash = Hash(sum_hash) @timestamp = sum_hash["timestamp"] @status = sum_hash["status"] @offset = sum_hash["offset"] @message = sum_hash["message"] @results = sum_hash["results"] @start_date = sum_hash["start_date"] @end_date = sum_hash["end_date"] @limit = sum_hash["limit"] @previous = sum_hash["previous"] @next = sum_hash["next"] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
validic-0.6.1 | lib/validic/summary.rb |
validic-0.6.0 | lib/validic/summary.rb |
validic-0.5.1 | lib/validic/summary.rb |
validic-0.5.0 | lib/validic/summary.rb |