Class: LMC::Membership
- Inherits:
-
Object
- Object
- LMC::Membership
- Defined in:
- lib/lmc/membership.rb
Instance Attribute Summary collapse
-
#authorities ⇒ Object
Returns the value of attribute authorities.
-
#name ⇒ Object
Returns the value of attribute name.
-
#state ⇒ Object
Returns the value of attribute state.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#authorities ⇒ Object
Returns the value of attribute authorities.
5 6 7 |
# File 'lib/lmc/membership.rb', line 5 def @authorities end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/lmc/membership.rb', line 5 def name @name end |
#state ⇒ Object
Returns the value of attribute state.
5 6 7 |
# File 'lib/lmc/membership.rb', line 5 def state @state end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/lmc/membership.rb', line 5 def type @type end |
Instance Method Details
#to_json(*a) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/lmc/membership.rb', line 7 def to_json(*a) { 'name' => @name, 'type' => @type, 'state' => @state, 'authorities' => @authorities }.to_json(*a) end |