Class: Trailblazer::Test::Testing::Memo

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



10
11
12
# File 'lib/trailblazer/test/testing.rb', line 10

def content
  @content
end

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



10
11
12
# File 'lib/trailblazer/test/testing.rb', line 10

def errors
  @errors
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



10
11
12
# File 'lib/trailblazer/test/testing.rb', line 10

def id
  @id
end

#persisted?Object

Returns the value of attribute persisted?

Returns:

  • (Object)

    the current value of persisted?



10
11
12
# File 'lib/trailblazer/test/testing.rb', line 10

def persisted?
  @persisted?
end

#tag_listObject

Returns the value of attribute tag_list

Returns:

  • (Object)

    the current value of tag_list



10
11
12
# File 'lib/trailblazer/test/testing.rb', line 10

def tag_list
  @tag_list
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



10
11
12
# File 'lib/trailblazer/test/testing.rb', line 10

def title
  @title
end

Instance Method Details

#saveObject



13
14
15
16
# File 'lib/trailblazer/test/testing.rb', line 13

def save
  self[:persisted?] = true
  self[:id] = 1
end