Class: SavedsearchParameterComponent
- Inherits:
-
Object
- Object
- SavedsearchParameterComponent
- Defined in:
- lib/refworks/savedsearch/savedsearch_parameter_component.rb
Instance Attribute Summary collapse
-
#connector ⇒ Object
readonly
Returns the value of attribute connector.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#searchempty ⇒ Object
readonly
Returns the value of attribute searchempty.
Instance Method Summary collapse
-
#initialize(rawcomponent) ⇒ SavedsearchParameterComponent
constructor
A new instance of SavedsearchParameterComponent.
Constructor Details
#initialize(rawcomponent) ⇒ SavedsearchParameterComponent
Returns a new instance of SavedsearchParameterComponent.
4 5 6 7 8 9 |
# File 'lib/refworks/savedsearch/savedsearch_parameter_component.rb', line 4 def initialize(rawcomponent) @content = rawcomponent["__content__"] @connector = rawcomponent["connector"] @field = rawcomponent["field"] @searchempty = rawcomponent["searchempty"] end |
Instance Attribute Details
#connector ⇒ Object (readonly)
Returns the value of attribute connector.
2 3 4 |
# File 'lib/refworks/savedsearch/savedsearch_parameter_component.rb', line 2 def connector @connector end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
2 3 4 |
# File 'lib/refworks/savedsearch/savedsearch_parameter_component.rb', line 2 def content @content end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
2 3 4 |
# File 'lib/refworks/savedsearch/savedsearch_parameter_component.rb', line 2 def field @field end |
#searchempty ⇒ Object (readonly)
Returns the value of attribute searchempty.
2 3 4 |
# File 'lib/refworks/savedsearch/savedsearch_parameter_component.rb', line 2 def searchempty @searchempty end |