Class: SDM::Memcached

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port_override: nil, port: nil) ⇒ Memcached

Returns a new instance of Memcached.



1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
# File 'lib/models/porcelain.rb', line 1637

def initialize(
	id:nil \
,
	name:nil \
,
	healthy:nil \
,
	hostname:nil \
,
	port_override:nil \
,
	port:nil \
)
	if id != nil
		@id = id
	end
	if name != nil
		@name = name
	end
	if healthy != nil
		@healthy = healthy
	end
	if hostname != nil
		@hostname = hostname
	end
	if port_override != nil
		@port_override = port_override
	end
	if port != nil
		@port = port
	end
end

Instance Attribute Details

#healthyObject

True if the datasource is reachable and the credentials are valid.



1630
1631
1632
# File 'lib/models/porcelain.rb', line 1630

def healthy
  @healthy
end

#hostnameObject

Returns the value of attribute hostname.



1632
1633
1634
# File 'lib/models/porcelain.rb', line 1632

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



1626
1627
1628
# File 'lib/models/porcelain.rb', line 1626

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1628
1629
1630
# File 'lib/models/porcelain.rb', line 1628

def name
  @name
end

#portObject

Returns the value of attribute port.



1636
1637
1638
# File 'lib/models/porcelain.rb', line 1636

def port
  @port
end

#port_overrideObject

Returns the value of attribute port_override.



1634
1635
1636
# File 'lib/models/porcelain.rb', line 1634

def port_override
  @port_override
end