Class: MockFile
- Inherits:
-
Object
- Object
- MockFile
- Defined in:
- lib/hyrax/specs/shared_specs/factories/users.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#to_s ⇒ Object
Returns the value of attribute to_s.
Instance Method Summary collapse
-
#initialize(id, string) ⇒ MockFile
constructor
A new instance of MockFile.
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
#id ⇒ Object
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_s ⇒ Object
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 |