Class: Miu::Resources::Content
- Defined in:
- lib/miu/resources/content.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#raw ⇒ Object
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Content
constructor
A new instance of Content.
- #to_h ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ Content
Returns a new instance of Content.
9 10 11 |
# File 'lib/miu/resources/content.rb', line 9 def initialize( = {}) @meta = [:meta] || {} end |
Instance Attribute Details
#meta ⇒ Object
Returns the value of attribute meta.
7 8 9 |
# File 'lib/miu/resources/content.rb', line 7 def @meta end |
#raw ⇒ Object
Returns the value of attribute raw.
6 7 8 |
# File 'lib/miu/resources/content.rb', line 6 def raw @raw end |
Instance Method Details
#to_h ⇒ Object
13 14 15 |
# File 'lib/miu/resources/content.rb', line 13 def to_h super.merge({:meta => @meta}) end |