Class: SeemsRateable::Builder
- Inherits:
-
Object
- Object
- SeemsRateable::Builder
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/seems_rateable/builder.rb,
lib/seems_rateable/builder/html_options.rb
Defined Under Namespace
Classes: HtmlOptions
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#rateable ⇒ Object
readonly
Returns the value of attribute rateable.
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(rateable, options) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(rateable, options) ⇒ Builder
Returns a new instance of Builder.
13 14 15 |
# File 'lib/seems_rateable/builder.rb', line 13 def initialize(rateable, ) @rateable, @options = rateable, end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/seems_rateable/builder.rb', line 7 def @options end |
#rateable ⇒ Object (readonly)
Returns the value of attribute rateable.
7 8 9 |
# File 'lib/seems_rateable/builder.rb', line 7 def rateable @rateable end |
Class Method Details
.build(rateable, options) ⇒ Object
9 10 11 |
# File 'lib/seems_rateable/builder.rb', line 9 def self.build(rateable, ) new(rateable, ).build end |
Instance Method Details
#build ⇒ Object
17 18 19 |
# File 'lib/seems_rateable/builder.rb', line 17 def build content_tag :div, nil, end |