Class: Scrapetor::Schema::Field

Inherits:
Struct
  • Object
show all
Defined in:
lib/scrapetor/schema.rb

Instance Attribute Summary collapse

Instance Attribute Details

#attrObject

Returns the value of attribute attr

Returns:

  • (Object)

    the current value of attr



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def attr
  @attr
end

#attr_strObject

Returns the value of attribute attr_str

Returns:

  • (Object)

    the current value of attr_str



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def attr_str
  @attr_str
end

#cleanObject

Returns the value of attribute clean

Returns:

  • (Object)

    the current value of clean



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def clean
  @clean
end

#defaultObject

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def default
  @default
end

#delimiterObject

Returns the value of attribute delimiter

Returns:

  • (Object)

    the current value of delimiter



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def delimiter
  @delimiter
end

#multiObject

Returns the value of attribute multi

Returns:

  • (Object)

    the current value of multi



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def multi
  @multi
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def name
  @name
end

#normalize_urlObject

Returns the value of attribute normalize_url

Returns:

  • (Object)

    the current value of normalize_url



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def normalize_url
  @normalize_url
end

#requiredObject

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def required
  @required
end

#selectorObject

Returns the value of attribute selector

Returns:

  • (Object)

    the current value of selector



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def selector
  @selector
end

#transformObject

Returns the value of attribute transform

Returns:

  • (Object)

    the current value of transform



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def transform
  @transform
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/scrapetor/schema.rb', line 5

def type
  @type
end