Class: Springcm::AppliedAttributeSetItem

Inherits:
Object
  • Object
show all
Defined in:
lib/springcm-sdk/applied_attribute_set_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

#method_missing, #raw

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

#groupObject (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

#nameObject (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

#subjectObject (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