Class: Saklient::Cloud::Resources::RouterPlan

Inherits:
Resource
  • Object
show all
Defined in:
lib/saklient/cloud/resources/router_plan.rb

Overview

ルータ帯域プラン情報の1レコードに対応するクラス.

Instance Attribute Summary collapse

Attributes inherited from Resource

#client

Instance Method Summary collapse

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.

Parameters:



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_mbpsFixnum (readonly)

帯域幅

Returns:

  • (Fixnum)


146
147
148
# File 'lib/saklient/cloud/resources/router_plan.rb', line 146

def band_width_mbps
  @band_width_mbps
end

#idString (readonly)

ID

Returns:

  • (String)


98
99
100
# File 'lib/saklient/cloud/resources/router_plan.rb', line 98

def id
  @id
end

#nameString (readonly)

名前

Returns:

  • (String)


122
123
124
# File 'lib/saklient/cloud/resources/router_plan.rb', line 122

def name
  @name
end

#service_classString (readonly)

サービスクラス

Returns:

  • (String)


170
171
172
# File 'lib/saklient/cloud/resources/router_plan.rb', line 170

def service_class
  @service_class
end

Instance Method Details

#_class_nameString

Returns:

  • (String)


59
60
61
# File 'lib/saklient/cloud/resources/router_plan.rb', line 59

def _class_name
  return 'RouterPlan'
end

#_idString

Returns:

  • (String)


65
66
67
# File 'lib/saklient/cloud/resources/router_plan.rb', line 65

def _id
  return get_id
end