Class: Textus::Command::Propose

Inherits:
Data
  • Object
show all
Defined in:
lib/textus/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, role:, meta: nil, body: nil, content: nil, pending_key: nil) ⇒ Propose

Returns a new instance of Propose.



6
7
8
# File 'lib/textus/command.rb', line 6

def initialize(key:, role:, meta: nil, body: nil, content: nil, pending_key: nil)
  super
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



5
6
7
# File 'lib/textus/command.rb', line 5

def body
  @body
end

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



5
6
7
# File 'lib/textus/command.rb', line 5

def content
  @content
end

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



5
6
7
# File 'lib/textus/command.rb', line 5

def key
  @key
end

#metaObject (readonly)

Returns the value of attribute meta

Returns:

  • (Object)

    the current value of meta



5
6
7
# File 'lib/textus/command.rb', line 5

def meta
  @meta
end

#pending_keyObject (readonly)

Returns the value of attribute pending_key

Returns:

  • (Object)

    the current value of pending_key



5
6
7
# File 'lib/textus/command.rb', line 5

def pending_key
  @pending_key
end

#roleObject (readonly)

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



5
6
7
# File 'lib/textus/command.rb', line 5

def role
  @role
end