Class: CredStash::Repository::Item
- Inherits:
- 
      Object
      
        - Object
- CredStash::Repository::Item
 
- Defined in:
- lib/cred_stash/repository/item.rb
Instance Attribute Summary collapse
- 
  
    
      #contents  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute contents. 
- 
  
    
      #hmac  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute hmac. 
- 
  
    
      #key  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute key. 
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
- 
  
    
      #version  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute version. 
Instance Method Summary collapse
- 
  
    
      #initialize(key: nil, contents: nil, name: nil, version: nil, hmac: nil)  ⇒ Item 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Item. 
Constructor Details
#initialize(key: nil, contents: nil, name: nil, version: nil, hmac: nil) ⇒ Item
Returns a new instance of Item.
| 5 6 7 8 9 10 11 | # File 'lib/cred_stash/repository/item.rb', line 5 def initialize(key: nil, contents: nil, name: nil, version: nil, hmac: nil) @key = key @contents = contents @name = name @version = version @hmac = hmac end | 
Instance Attribute Details
#contents ⇒ Object (readonly)
Returns the value of attribute contents.
| 3 4 5 | # File 'lib/cred_stash/repository/item.rb', line 3 def contents @contents end | 
#hmac ⇒ Object (readonly)
Returns the value of attribute hmac.
| 3 4 5 | # File 'lib/cred_stash/repository/item.rb', line 3 def hmac @hmac end | 
#key ⇒ Object (readonly)
Returns the value of attribute key.
| 3 4 5 | # File 'lib/cred_stash/repository/item.rb', line 3 def key @key end | 
#name ⇒ Object (readonly)
Returns the value of attribute name.
| 3 4 5 | # File 'lib/cred_stash/repository/item.rb', line 3 def name @name end | 
#version ⇒ Object (readonly)
Returns the value of attribute version.
| 3 4 5 | # File 'lib/cred_stash/repository/item.rb', line 3 def version @version end |