Class: Latitude::API::Resources::Plan::Bandwidth

Inherits:
APIResource
  • Object
show all
Extended by:
Operations::List
Defined in:
lib/latitude/api/resources/plan.rb

Overview

@return [Pricing]

Defined Under Namespace

Classes: Brl, Pricing, Usd

Constant Summary

Constants inherited from APIResource

APIResource::READ_ONLY_ATTRIBUTES

Instance Attribute Summary collapse

Attributes inherited from APIResource

#id, #meta, #path_params, #raw_data, #type

Class Method Summary collapse

Methods included from Operations::List

all, list

Methods inherited from APIResource

#==, #[], #[]=, #as_json, #attributes, #changed?, class_url, config_source, construct_from, #delete, execute_request, extract_path_params, #hash, id_prefix, #initialize, #inspect, instance_url, #method_missing, path_param_keys, #refresh, resource_path, resource_type, #resource_url, #respond_to_missing?, #save, #to_h, #unsaved_attributes, with_config, #write_attribute

Methods included from Attributes::ClassMethods

#attribute, #attribute_specs

Methods included from Attributes::InstanceMethods

#attribute_spec, #read_attribute, #wrap_attribute

Constructor Details

This class inherits a constructor from Latitude::API::APIResource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Latitude::API::APIResource

Instance Attribute Details

#brlObject (readonly)



# File 'lib/latitude/api/resources/plan.rb', line 274


#monthlyObject (readonly)



# File 'lib/latitude/api/resources/plan.rb', line 236


#usdObject (readonly)



# File 'lib/latitude/api/resources/plan.rb', line 270


#yearlyObject (readonly)



# File 'lib/latitude/api/resources/plan.rb', line 240


Class Method Details

.update_packages(attributes = {}, opts = {}) ⇒ Object



299
300
301
302
# File 'lib/latitude/api/resources/plan.rb', line 299

def update_packages(attributes = {}, opts = {})
  body = JSONAPI.encode(type: "bandwidth_packages", attributes: attributes)
  execute_request(method: :post, path: resource_path, body: body, opts: opts)
end