Class: UnlockGateway::Setting

Inherits:
Object
  • Object
show all
Defined in:
lib/unlock_gateway/setting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, title, description) ⇒ Setting

Returns a new instance of Setting.



6
7
8
9
10
# File 'lib/unlock_gateway/setting.rb', line 6

def initialize(key, title, description)
  self.key = key
  self.title = title
  self.description = description
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/unlock_gateway/setting.rb', line 4

def description
  @description
end

#keyObject

Returns the value of attribute key.



4
5
6
# File 'lib/unlock_gateway/setting.rb', line 4

def key
  @key
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/unlock_gateway/setting.rb', line 4

def title
  @title
end