Module: BasicAuthMark

Defined in:
lib/basic_auth_mark/mark.rb,
lib/basic_auth_mark.rb,
lib/basic_auth_mark/railtie.rb,
lib/basic_auth_mark/version.rb,
lib/basic_auth_mark/middleware.rb

Overview

Defined Under Namespace

Classes: Mark, Middleware, Railtie

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.colorObject



17
18
19
# File 'lib/basic_auth_mark.rb', line 17

def color
  @color ||= '880000'
end

.color=(color) ⇒ Object



21
22
23
# File 'lib/basic_auth_mark.rb', line 21

def color=(color)
  @color = color
end

.markable_ip_addressesObject



25
26
27
# File 'lib/basic_auth_mark.rb', line 25

def markable_ip_addresses
  @markable_ip_addresses ||= []
end

.markable_ip_addresses=(markable_ip_addresses) ⇒ Object



29
30
31
32
33
34
35
# File 'lib/basic_auth_mark.rb', line 29

def markable_ip_addresses=(markable_ip_addresses)
  if markable_ip_addresses.is_a?(Array)
    @markable_ip_addresses = markable_ip_addresses
  else
    @markable_ip_addresses = [markable_ip_addresses]
  end
end

.positionObject



9
10
11
# File 'lib/basic_auth_mark.rb', line 9

def position
  @position ||= 'right-top'
end

.position=(position) ⇒ Object



13
14
15
# File 'lib/basic_auth_mark.rb', line 13

def position=(position)
  @position = position
end