Class: PageMagic::Element::Selector::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/page_magic/element/selector/model.rb

Overview

class model - represents the parameters for capybara finder methods

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, options = {}) ⇒ Model

Returns a new instance of Model.



10
11
12
13
# File 'lib/page_magic/element/selector/model.rb', line 10

def initialize(args, options = {})
  @args = args
  @options = options
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



8
9
10
# File 'lib/page_magic/element/selector/model.rb', line 8

def args
  @args
end

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/page_magic/element/selector/model.rb', line 8

def options
  @options
end

Instance Method Details

#==(other) ⇒ Object



15
16
17
# File 'lib/page_magic/element/selector/model.rb', line 15

def ==(other)
  other.args == args && other.options == options
end