Class: Stitcher::StitchContent

Inherits:
Object
  • Object
show all
Includes:
ValueEquality
Defined in:
lib/jirametrics/stitcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ValueEquality

#==, #eql?

Constructor Details

#initialize(file:, title:, type:, content:) ⇒ StitchContent

Returns a new instance of StitchContent.



9
10
11
12
13
14
# File 'lib/jirametrics/stitcher.rb', line 9

def initialize file:, title:, type:, content:
  @file = file
  @title = title
  @content = content
  @type = type
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



7
8
9
# File 'lib/jirametrics/stitcher.rb', line 7

def content
  @content
end

#fileObject (readonly)

Returns the value of attribute file.



7
8
9
# File 'lib/jirametrics/stitcher.rb', line 7

def file
  @file
end

#titleObject (readonly)

Returns the value of attribute title.



7
8
9
# File 'lib/jirametrics/stitcher.rb', line 7

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/jirametrics/stitcher.rb', line 7

def type
  @type
end