Class: Ayadn::ChannelEditorsObject

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/channel_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ ChannelEditorsObject

Returns a new instance of ChannelEditorsObject.



21
22
23
24
25
26
27
28
# File 'lib/ayadn/channel_object.rb', line 21

def initialize hash
  @input = hash
  @you = @input["you"]
  @any_user = @input["any_user"]
  @public = @input["public"]
  @immutable = @input["immutable"]
  @user_ids = @input["user_ids"]
end

Instance Attribute Details

#any_userObject (readonly)

Returns the value of attribute any_user.



19
20
21
# File 'lib/ayadn/channel_object.rb', line 19

def any_user
  @any_user
end

#immutableObject (readonly)

Returns the value of attribute immutable.



19
20
21
# File 'lib/ayadn/channel_object.rb', line 19

def immutable
  @immutable
end

#inputObject (readonly)

Returns the value of attribute input.



19
20
21
# File 'lib/ayadn/channel_object.rb', line 19

def input
  @input
end

#publicObject (readonly)

Returns the value of attribute public.



19
20
21
# File 'lib/ayadn/channel_object.rb', line 19

def public
  @public
end

#user_idsObject (readonly)

Returns the value of attribute user_ids.



19
20
21
# File 'lib/ayadn/channel_object.rb', line 19

def user_ids
  @user_ids
end

#youObject (readonly)

Returns the value of attribute you.



19
20
21
# File 'lib/ayadn/channel_object.rb', line 19

def you
  @you
end