Class: SonJay::ObjectModel::Content::ContentWithoutExtra

Inherits:
Abstract
  • Object
show all
Defined in:
lib/son_jay/object_model/content/content_without_extra.rb

Instance Attribute Summary

Attributes inherited from Abstract

#model_properties

Instance Method Summary collapse

Methods inherited from Abstract

#[], #[]=, #clone, #dup, #fetch, #freeze, #initialize, #load_data, #load_property, #to_json

Constructor Details

This class inherits a constructor from SonJay::ObjectModel::Content::Abstract

Instance Method Details

#eachObject



11
12
13
14
15
# File 'lib/son_jay/object_model/content/content_without_extra.rb', line 11

def each
  @data.each do |(name, value)|
    yield name, value
  end
end

#extraObject



7
8
9
# File 'lib/son_jay/object_model/content/content_without_extra.rb', line 7

def extra
  raise SonJay::DisabledMethodError
end

#to_hObject



17
18
19
# File 'lib/son_jay/object_model/content/content_without_extra.rb', line 17

def to_h
  @data.dup
end