Class: Saklient::Cloud::Resources::RouterPlan
- Defined in:
- lib/saklient/cloud/resources/router_plan.rb
Overview
ルータ帯域プラン情報の1レコードに対応するクラス.
Instance Attribute Summary collapse
-
#band_width_mbps ⇒ Fixnum
readonly
帯域幅.
-
#id ⇒ String
readonly
ID.
-
#name ⇒ String
readonly
名前.
-
#service_class ⇒ String
readonly
サービスクラス.
Attributes inherited from Resource
Instance Method Summary collapse
- #_class_name ⇒ String
- #_id ⇒ String
-
#initialize(client, obj, wrapped = false) ⇒ RouterPlan
constructor
A new instance of RouterPlan.
Methods inherited from Resource
#api_deserialize, #api_serialize, create_with, #destroy, #dump, #exists, #request_retry, #set_param
Constructor Details
#initialize(client, obj, wrapped = false) ⇒ RouterPlan
Returns a new instance of RouterPlan.
73 74 75 76 77 78 |
# File 'lib/saklient/cloud/resources/router_plan.rb', line 73 def initialize(client, obj, wrapped = false) super(client) Saklient::Util::validate_type(client, 'Saklient::Cloud::Client') Saklient::Util::validate_type(wrapped, 'bool') api_deserialize(obj, wrapped) end |
Instance Attribute Details
#band_width_mbps ⇒ Fixnum (readonly)
帯域幅
146 147 148 |
# File 'lib/saklient/cloud/resources/router_plan.rb', line 146 def band_width_mbps @band_width_mbps end |
#id ⇒ String (readonly)
ID
98 99 100 |
# File 'lib/saklient/cloud/resources/router_plan.rb', line 98 def id @id end |
#name ⇒ String (readonly)
名前
122 123 124 |
# File 'lib/saklient/cloud/resources/router_plan.rb', line 122 def name @name end |
#service_class ⇒ String (readonly)
サービスクラス
170 171 172 |
# File 'lib/saklient/cloud/resources/router_plan.rb', line 170 def service_class @service_class end |
Instance Method Details
#_class_name ⇒ String
59 60 61 |
# File 'lib/saklient/cloud/resources/router_plan.rb', line 59 def _class_name return 'RouterPlan' end |
#_id ⇒ String
65 66 67 |
# File 'lib/saklient/cloud/resources/router_plan.rb', line 65 def _id return get_id end |