Class: Tenet::IndexPage
- Inherits:
-
Object
- Object
- Tenet::IndexPage
- Defined in:
- lib/tenet/index_page.rb
Constant Summary collapse
- @@url =
""
- @@row =
""
- @@attributes =
[]
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ IndexPage
constructor
A new instance of IndexPage.
- #to_a ⇒ Array<Hash>
Constructor Details
Class Method Details
.attribute(name, css:, type: :string) ⇒ Object
28 29 30 |
# File 'lib/tenet/index_page.rb', line 28 def attribute(name, css:, type: :string) @@attributes << Attribute.new(name, css: css, type: type) end |
.row(css) ⇒ Object
19 20 21 |
# File 'lib/tenet/index_page.rb', line 19 def row(css) @@row = css end |
.url(url) ⇒ Object
12 13 14 |
# File 'lib/tenet/index_page.rb', line 12 def url(url) @@url = url end |
Instance Method Details
#to_a ⇒ Array<Hash>
44 45 46 |
# File 'lib/tenet/index_page.rb', line 44 def to_a @collection end |