Class: Contentful::File
- Inherits:
-
Object
- Object
- Contentful::File
- Defined in:
- lib/contentful/file.rb
Overview
An Assets’s file info
Instance Method Summary collapse
-
#initialize(json, configuration) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(json, configuration) ⇒ File
Returns a new instance of File.
4 5 6 7 8 |
# File 'lib/contentful/file.rb', line 4 def initialize(json, configuration) @configuration = configuration define_fields!(json) end |