Class: LMC::Membership

Inherits:
Object
  • Object
show all
Defined in:
lib/lmc/membership.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authoritiesObject

Returns the value of attribute authorities.



5
6
7
# File 'lib/lmc/membership.rb', line 5

def authorities
  @authorities
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/lmc/membership.rb', line 5

def name
  @name
end

#stateObject

Returns the value of attribute state.



5
6
7
# File 'lib/lmc/membership.rb', line 5

def state
  @state
end

#typeObject

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