Class: MockFile

Inherits:
Object
  • Object
show all
Defined in:
lib/hyrax/specs/shared_specs/factories/users.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, string) ⇒ MockFile

Returns a new instance of MockFile.



48
49
50
51
# File 'lib/hyrax/specs/shared_specs/factories/users.rb', line 48

def initialize(id, string)
  self.id = id
  self.to_s = string
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



47
48
49
# File 'lib/hyrax/specs/shared_specs/factories/users.rb', line 47

def id
  @id
end

#to_sObject

Returns the value of attribute to_s.



47
48
49
# File 'lib/hyrax/specs/shared_specs/factories/users.rb', line 47

def to_s
  @to_s
end