Class: SavedsearchParameterComponent

Inherits:
Object
  • Object
show all
Defined in:
lib/refworks/savedsearch/savedsearch_parameter_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#connectorObject (readonly)

Returns the value of attribute connector.



2
3
4
# File 'lib/refworks/savedsearch/savedsearch_parameter_component.rb', line 2

def connector
  @connector
end

#contentObject (readonly)

Returns the value of attribute content.



2
3
4
# File 'lib/refworks/savedsearch/savedsearch_parameter_component.rb', line 2

def content
  @content
end

#fieldObject (readonly)

Returns the value of attribute field.



2
3
4
# File 'lib/refworks/savedsearch/savedsearch_parameter_component.rb', line 2

def field
  @field
end

#searchemptyObject (readonly)

Returns the value of attribute searchempty.



2
3
4
# File 'lib/refworks/savedsearch/savedsearch_parameter_component.rb', line 2

def searchempty
  @searchempty
end