Class: Serverkit::Resources::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/serverkit/resources/base.rb

Direct Known Subclasses

File, Git, HomebrewCask, Package, Symlink

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(properties) ⇒ Base

Returns a new instance of Base.

Parameters:

  • properties (Hash)


7
8
9
# File 'lib/serverkit/resources/base.rb', line 7

def initialize(properties)
  @properties = properties
end

Instance Attribute Details

#backend ⇒ Object

Returns the value of attribute backend.



4
5
6
# File 'lib/serverkit/resources/base.rb', line 4

def backend
  @backend
end

Instance Method Details

#name ⇒ String

Returns:

  • (String)


12
13
14
# File 'lib/serverkit/resources/base.rb', line 12

def name
  @properties["name"]
end