Class: Saml::Kit::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/kit/template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ Template

Returns a new instance of Template.



6
7
8
# File 'lib/saml/kit/template.rb', line 6

def initialize(target)
  @target = target
end

Instance Attribute Details

#target ⇒ Object (readonly)

Returns the value of attribute target.



4
5
6
# File 'lib/saml/kit/template.rb', line 4

def target
  @target
end

Instance Method Details

#to_xml(options) ⇒ Object



10
11
12
# File 'lib/saml/kit/template.rb', line 10

def to_xml(options)
  template.render(target, options)
end