Class: Unfuzzle::Component

Inherits:
Object
  • Object
show all
Includes:
Graft
Defined in:
lib/unfuzzle/lib/unfuzzle/component.rb

Overview

Component

Represents a Component in an Unfuddle project. These are user-configurable and are custom for each project you have. Examples include 'Administration', 'User Registration', etc.. A component has the following attributes:

[id] The unique id for this component [name] The name of this component (e.g User Registration) [created_at] The date/time that this component was created [updated_at] The date/time that this component was last updated

Class Method Summary collapse

Methods included from Graft

included

Class Method Details

.find_by_project_id_and_component_id(project_id, component_id) ⇒ Object

Find a component by ID for a given project



25
26
27
28
# File 'lib/unfuzzle/lib/unfuzzle/component.rb', line 25

def self.find_by_project_id_and_component_id(project_id, component_id)
  response = Request.get("/projects/#{project_id}/components/#{component_id}")
  new response.body
end