Sha256: 3433f959060815c5c7399b17f449a2d93b1858b273d02487dc282796b66725fd
Contents?: true
Size: 338 Bytes
Versions: 8
Compression:
Stored size: 338 Bytes
Contents
module Contentful # An Assets's file info class File attr_reader :file_name, :content_type, :details, :url def initialize(json) @file_name = json.fetch('fileName', nil) @content_type = json.fetch('contentType', nil) @details = json.fetch('details', nil) @url = json.fetch('url', nil) end end end
Version data entries
8 entries across 8 versions & 1 rubygems