Class: AuthLh::ExternalApp
- Inherits:
-
Object
- Object
- AuthLh::ExternalApp
- Defined in:
- lib/auth_lh/external_app.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#is_local ⇒ Object
Returns the value of attribute is_local.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ExternalApp
constructor
A new instance of ExternalApp.
- #local_description(current_shop_code) ⇒ Object
- #local_url(current_shop_code) ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ ExternalApp
Returns a new instance of ExternalApp.
5 6 7 8 9 |
# File 'lib/auth_lh/external_app.rb', line 5 def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) end end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/auth_lh/external_app.rb', line 3 def description @description end |
#is_local ⇒ Object
Returns the value of attribute is_local.
3 4 5 |
# File 'lib/auth_lh/external_app.rb', line 3 def is_local @is_local end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/auth_lh/external_app.rb', line 3 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/auth_lh/external_app.rb', line 3 def url @url end |
Instance Method Details
#local_description(current_shop_code) ⇒ Object
11 12 13 |
# File 'lib/auth_lh/external_app.rb', line 11 def local_description(current_shop_code) description % { shop_code: current_shop_code } end |
#local_url(current_shop_code) ⇒ Object
15 16 17 |
# File 'lib/auth_lh/external_app.rb', line 15 def local_url(current_shop_code) url % { shop_code: current_shop_code } end |