Class: AuthLh::ExternalApp

Inherits:
Object
  • Object
show all
Defined in:
lib/auth_lh/external_app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/auth_lh/external_app.rb', line 3

def description
  @description
end

#is_localObject

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

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/auth_lh/external_app.rb', line 3

def name
  @name
end

#urlObject

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