Class: CredStash::Repository::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/cred_stash/repository/item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentsObject (readonly)

Returns the value of attribute contents.



3
4
5
# File 'lib/cred_stash/repository/item.rb', line 3

def contents
  @contents
end

#hmacObject (readonly)

Returns the value of attribute hmac.



3
4
5
# File 'lib/cred_stash/repository/item.rb', line 3

def hmac
  @hmac
end

#keyObject (readonly)

Returns the value of attribute key.



3
4
5
# File 'lib/cred_stash/repository/item.rb', line 3

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/cred_stash/repository/item.rb', line 3

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version.



3
4
5
# File 'lib/cred_stash/repository/item.rb', line 3

def version
  @version
end