Sha256: 5ab2281badb230bf535b7fce6ab0bb3e44fab593e7a16262121ea39e244e988d

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

module AuthLh
  class ExternalApp
    attr_accessor :name, :description, :url, :is_local

    def initialize(attributes={})
      attributes.each do |k,v|
        self.send("#{k}=", v)
      end
    end

    def local_url(current_shop_code)
      url % { shop_code: current_shop_code }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
auth-lh-0.24.0 lib/auth_lh/external_app.rb