Class: StrawberryAPI::Edit

Inherits:
Object
  • Object
show all
Defined in:
lib/strawberry_api/edit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Edit

Returns a new instance of Edit



12
13
14
15
16
# File 'lib/strawberry_api/edit.rb', line 12

def initialize(params = {})
    params.each do |k, v|
      instance_variable_set("@#{k}", v) unless v.nil?
    end
end

Instance Attribute Details

#commentObject

Returns the value of attribute comment



10
11
12
# File 'lib/strawberry_api/edit.rb', line 10

def comment
  @comment
end

#created_atObject

Returns the value of attribute created_at



8
9
10
# File 'lib/strawberry_api/edit.rb', line 8

def created_at
  @created_at
end

#idObject

Returns the value of attribute id



5
6
7
# File 'lib/strawberry_api/edit.rb', line 5

def id
  @id
end

#nameObject

Returns the value of attribute name



6
7
8
# File 'lib/strawberry_api/edit.rb', line 6

def name
  @name
end

#passwordObject

Returns the value of attribute password



7
8
9
# File 'lib/strawberry_api/edit.rb', line 7

def password
  @password
end

#updated_atObject

Returns the value of attribute updated_at



9
10
11
# File 'lib/strawberry_api/edit.rb', line 9

def updated_at
  @updated_at
end