Class: Cloudflair::CustomHostname
- Inherits:
-
Object
- Object
- Cloudflair::CustomHostname
- Includes:
- Entity
- Defined in:
- lib/cloudflair/api/zone/custom_hostname.rb
Instance Attribute Summary collapse
-
#custom_hostname_id ⇒ Object
readonly
Returns the value of attribute custom_hostname_id.
-
#zone_id ⇒ Object
readonly
Returns the value of attribute zone_id.
Instance Method Summary collapse
-
#initialize(zone_id, custom_hostname_id) ⇒ CustomHostname
constructor
A new instance of CustomHostname.
Methods included from Entity
#data=, #delete, included, #method_missing, #patch, #reload, #respond_to_missing?, #revert, #update
Methods included from Communication
#connection, #hash_to_object, #response
Constructor Details
#initialize(zone_id, custom_hostname_id) ⇒ CustomHostname
Returns a new instance of CustomHostname.
14 15 16 17 |
# File 'lib/cloudflair/api/zone/custom_hostname.rb', line 14 def initialize(zone_id, custom_hostname_id) @zone_id = zone_id @custom_hostname_id = custom_hostname_id end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Cloudflair::Entity
Instance Attribute Details
#custom_hostname_id ⇒ Object (readonly)
Returns the value of attribute custom_hostname_id.
9 10 11 |
# File 'lib/cloudflair/api/zone/custom_hostname.rb', line 9 def custom_hostname_id @custom_hostname_id end |
#zone_id ⇒ Object (readonly)
Returns the value of attribute zone_id.
9 10 11 |
# File 'lib/cloudflair/api/zone/custom_hostname.rb', line 9 def zone_id @zone_id end |