Class: Latitude::API::Resources::Role

Inherits:
APIResource show all
Extended by:
Operations::List, Operations::Retrieve
Defined in:
lib/latitude/api/resources/role.rb

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

Method Summary

Methods included from Operations::List

all, list

Methods included from Operations::Retrieve

retrieve

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

#nameString

Returns:

  • (String)


8
9
10
11
12
13
14
15
16
17
# File 'lib/latitude/api/resources/role.rb', line 8

class Role < APIResource
  attribute :name, :string

  resource_type "roles"
  resource_path "/roles"
  id_prefix     "role_"

  extend Operations::List
  extend Operations::Retrieve
end