Class: Latitude::API::Resources::UserData
- Inherits:
-
APIResource
- Object
- APIResource
- Latitude::API::Resources::UserData
- Extended by:
- Operations::Create, Operations::Delete, Operations::List, Operations::Retrieve, Operations::Update
- Defined in:
- lib/latitude/api/resources/user_data.rb
Constant Summary
Constants inherited from APIResource
APIResource::READ_ONLY_ATTRIBUTES
Instance Attribute Summary collapse
- #content ⇒ String
- #created_at ⇒ Time readonly
- #decoded_content ⇒ String
- #description ⇒ String
- #project ⇒ Latitude::API::Objects::Project
- #updated_at ⇒ Time readonly
Attributes inherited from APIResource
#id, #meta, #path_params, #raw_data, #type
Method Summary
Methods included from Operations::List
Methods included from Operations::Create
Methods included from Operations::Retrieve
Methods included from Operations::Update
Methods included from Operations::Delete
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
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
#content ⇒ String
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/latitude/api/resources/user_data.rb', line 18 class UserData < APIResource attribute :description, :string attribute :content, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :decoded_content, :string attribute :project, Objects::Project resource_type "user_data" resource_path "/user_data" id_prefix "ud_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete end |
#created_at ⇒ Time (readonly)
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/latitude/api/resources/user_data.rb', line 18 class UserData < APIResource attribute :description, :string attribute :content, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :decoded_content, :string attribute :project, Objects::Project resource_type "user_data" resource_path "/user_data" id_prefix "ud_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete end |
#decoded_content ⇒ String
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/latitude/api/resources/user_data.rb', line 18 class UserData < APIResource attribute :description, :string attribute :content, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :decoded_content, :string attribute :project, Objects::Project resource_type "user_data" resource_path "/user_data" id_prefix "ud_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete end |
#description ⇒ String
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/latitude/api/resources/user_data.rb', line 18 class UserData < APIResource attribute :description, :string attribute :content, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :decoded_content, :string attribute :project, Objects::Project resource_type "user_data" resource_path "/user_data" id_prefix "ud_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete end |
#project ⇒ Latitude::API::Objects::Project
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/latitude/api/resources/user_data.rb', line 18 class UserData < APIResource attribute :description, :string attribute :content, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :decoded_content, :string attribute :project, Objects::Project resource_type "user_data" resource_path "/user_data" id_prefix "ud_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete end |
#updated_at ⇒ Time (readonly)
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/latitude/api/resources/user_data.rb', line 18 class UserData < APIResource attribute :description, :string attribute :content, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :decoded_content, :string attribute :project, Objects::Project resource_type "user_data" resource_path "/user_data" id_prefix "ud_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete end |