Class: RubyCms::ContentBlocksGrouping::Row

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby_cms/content_blocks_grouping.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#content_blockObject

Returns the value of attribute content_block

Returns:

  • (Object)

    the current value of content_block



5
6
7
# File 'lib/ruby_cms/content_blocks_grouping.rb', line 5

def content_block
  @content_block
end

#content_typeObject

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



5
6
7
# File 'lib/ruby_cms/content_blocks_grouping.rb', line 5

def content_type
  @content_type
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



5
6
7
# File 'lib/ruby_cms/content_blocks_grouping.rb', line 5

def id
  @id
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



5
6
7
# File 'lib/ruby_cms/content_blocks_grouping.rb', line 5

def key
  @key
end

#localeObject

Returns the value of attribute locale

Returns:

  • (Object)

    the current value of locale



5
6
7
# File 'lib/ruby_cms/content_blocks_grouping.rb', line 5

def locale
  @locale
end

#publishedObject

Returns the value of attribute published

Returns:

  • (Object)

    the current value of published



5
6
7
# File 'lib/ruby_cms/content_blocks_grouping.rb', line 5

def published
  @published
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



5
6
7
# File 'lib/ruby_cms/content_blocks_grouping.rb', line 5

def title
  @title
end

Instance Method Details

#model_nameObject

rubocop:disable Rails/Delegate



10
11
12
# File 'lib/ruby_cms/content_blocks_grouping.rb', line 10

def model_name # rubocop:disable Rails/Delegate
  ::ContentBlock.model_name
end

#published?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/ruby_cms/content_blocks_grouping.rb', line 6

def published?
  published
end