Class: IpAddressTemplate::Scope

Inherits:
String
  • Object
show all
Defined in:
lib/mantra/helpers/template_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Scope

Returns a new instance of Scope.



4
5
6
7
8
# File 'lib/mantra/helpers/template_helper.rb', line 4

def initialize(options)
  @value = options[:value]
  @scope = options[:scope]
  super(options[:scope])
end

Instance Attribute Details

#scopeObject

Returns the value of attribute scope.



3
4
5
# File 'lib/mantra/helpers/template_helper.rb', line 3

def scope
  @scope
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/mantra/helpers/template_helper.rb', line 3

def value
  @value
end

Instance Method Details

#is_scope?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/mantra/helpers/template_helper.rb', line 9

def is_scope?
  true
end