Module: Railjet::Presenter
Defined Under Namespace
Modules: ClassMethods, Factory, WithContext
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
11 12 13 |
# File 'lib/railjet/presenter.rb', line 11 def object @object end |
Instance Method Details
#as_json ⇒ Object
13 14 15 |
# File 'lib/railjet/presenter.rb', line 13 def as_json(*) raise NotImplementedError end |
#initialize(object) ⇒ Object
7 8 9 |
# File 'lib/railjet/presenter.rb', line 7 def initialize(object) @object = object end |