Class: Springcm::AppliedAttributeSetItem
- Defined in:
- lib/springcm-sdk/applied_attribute_set_item.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
- #field(field_name) ⇒ Object
-
#initialize(data, subject, group, set, client) ⇒ AppliedAttributeSetItem
constructor
A new instance of AppliedAttributeSetItem.
Methods inherited from Object
Constructor Details
#initialize(data, subject, group, set, client) ⇒ AppliedAttributeSetItem
Returns a new instance of AppliedAttributeSetItem.
10 11 12 13 14 |
# File 'lib/springcm-sdk/applied_attribute_set_item.rb', line 10 def initialize(data, subject, group, set, client) @subject = subject @group = group super(data, client) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Springcm::Object
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
7 8 9 |
# File 'lib/springcm-sdk/applied_attribute_set_item.rb', line 7 def group @group end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/springcm-sdk/applied_attribute_set_item.rb', line 8 def name @name end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
6 7 8 |
# File 'lib/springcm-sdk/applied_attribute_set_item.rb', line 6 def subject @subject end |
Instance Method Details
#field(field_name) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/springcm-sdk/applied_attribute_set_item.rb', line 16 def field(field_name) # Validate name not one of the restricted attribute names: # RepeatingAttribute, AttributeType field_data = raw[field_name] AppliedAttributeField.new(field_data, field_name, subject, group, set, @client) end |