Class: Trailblazer::Test::Testing::Memo
- Inherits:
-
Struct
- Object
- Struct
- Trailblazer::Test::Testing::Memo
- Defined in:
- lib/trailblazer/test/testing.rb
Defined Under Namespace
Modules: Operation
Constant Summary collapse
- VALID_INPUT =
{params: {memo: {title: "TODO", content: "Stock up beer"}}}.freeze
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#id ⇒ Object
Returns the value of attribute id.
-
#persisted? ⇒ Object
Returns the value of attribute persisted?.
-
#tag_list ⇒ Object
Returns the value of attribute tag_list.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
10 11 12 |
# File 'lib/trailblazer/test/testing.rb', line 10 def content @content end |
#errors ⇒ Object
Returns the value of attribute errors
10 11 12 |
# File 'lib/trailblazer/test/testing.rb', line 10 def errors @errors end |
#id ⇒ Object
Returns the value of attribute id
10 11 12 |
# File 'lib/trailblazer/test/testing.rb', line 10 def id @id end |
#persisted? ⇒ Object
Returns the value of attribute persisted?
10 11 12 |
# File 'lib/trailblazer/test/testing.rb', line 10
def persisted?
@persisted?
end
|
#tag_list ⇒ Object
Returns the value of attribute tag_list
10 11 12 |
# File 'lib/trailblazer/test/testing.rb', line 10 def tag_list @tag_list end |
#title ⇒ Object
Returns the value of attribute title
10 11 12 |
# File 'lib/trailblazer/test/testing.rb', line 10 def title @title end |
Instance Method Details
#save ⇒ Object
13 14 15 16 |
# File 'lib/trailblazer/test/testing.rb', line 13 def save self[:persisted?] = true self[:id] = 1 end |