Class: SDM::Memcached
- Inherits:
-
Object
- Object
- SDM::Memcached
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#port ⇒ Object
Returns the value of attribute port.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port_override: nil, port: nil) ⇒ Memcached
constructor
A new instance of Memcached.
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
#healthy ⇒ Object
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 |
#hostname ⇒ Object
Returns the value of attribute hostname.
1632 1633 1634 |
# File 'lib/models/porcelain.rb', line 1632 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1626 1627 1628 |
# File 'lib/models/porcelain.rb', line 1626 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1628 1629 1630 |
# File 'lib/models/porcelain.rb', line 1628 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
1636 1637 1638 |
# File 'lib/models/porcelain.rb', line 1636 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
1634 1635 1636 |
# File 'lib/models/porcelain.rb', line 1634 def port_override @port_override end |