Class: As2::Config::ServerInfo
- Inherits:
- 
      Struct
      
        - Object
- Struct
- As2::Config::ServerInfo
 
- Defined in:
- lib/as2/config.rb
Instance Attribute Summary collapse
- 
  
    
      #certificate  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute certificate. 
- 
  
    
      #domain  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute domain. 
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
- 
  
    
      #pkey  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute pkey. 
- 
  
    
      #url  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute url. 
Instance Method Summary collapse
Instance Attribute Details
#certificate ⇒ Object
Returns the value of attribute certificate
| 47 48 49 | # File 'lib/as2/config.rb', line 47 def certificate @certificate end | 
#domain ⇒ Object
Returns the value of attribute domain
| 47 48 49 | # File 'lib/as2/config.rb', line 47 def domain @domain end | 
#name ⇒ Object
Returns the value of attribute name
| 47 48 49 | # File 'lib/as2/config.rb', line 47 def name @name end | 
#pkey ⇒ Object
Returns the value of attribute pkey
| 47 48 49 | # File 'lib/as2/config.rb', line 47 def pkey @pkey end | 
#url ⇒ Object
Returns the value of attribute url
| 47 48 49 | # File 'lib/as2/config.rb', line 47 def url @url end | 
Instance Method Details
#add_partner {|partner| ... } ⇒ Object
| 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | # File 'lib/as2/config.rb', line 73 def add_partner partner = Partner.new yield partner unless partner.name raise 'Partner name is required' end unless partner.certificate raise 'Partner certificate is required' end unless partner.url raise 'Partner URL is required' end Config.partners[partner.name] = partner Config.store.add_cert partner.certificate end |