Class: Pakyow::UI::Recordable::Attributes Private

Inherits:
Presenter::Attributes
  • Object
show all
Includes:
Helpers::ClientRemapping
Defined in:
lib/pakyow/ui/recordable/attributes.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helpers::ClientRemapping

#remap_for_client

Class Method Details

.from_attributes(attributes) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



42
43
44
45
46
# File 'lib/pakyow/ui/recordable/attributes.rb', line 42

def from_attributes(attributes)
  new(attributes.instance_variable_get(:@attributes)).tap { |instance|
    instance.instance_variable_set(:@calls, [])
  }
end

Instance Method Details

#to_jsonObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



37
38
39
# File 'lib/pakyow/ui/recordable/attributes.rb', line 37

def to_json(*)
  @calls.to_json
end