Class: Swiftfake::SwiftClass
- Inherits:
-
Object
- Object
- Swiftfake::SwiftClass
- Defined in:
- lib/swiftfake/swift_class.rb
Instance Attribute Summary collapse
-
#access ⇒ Object
readonly
Returns the value of attribute access.
-
#functions ⇒ Object
readonly
Returns the value of attribute functions.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, access:, functions:) ⇒ SwiftClass
constructor
A new instance of SwiftClass.
Constructor Details
#initialize(name:, access:, functions:) ⇒ SwiftClass
Returns a new instance of SwiftClass.
5 6 7 8 9 |
# File 'lib/swiftfake/swift_class.rb', line 5 def initialize(name:, access:, functions:) @name = name @access = access @functions = functions end |
Instance Attribute Details
#access ⇒ Object (readonly)
Returns the value of attribute access.
3 4 5 |
# File 'lib/swiftfake/swift_class.rb', line 3 def access @access end |
#functions ⇒ Object (readonly)
Returns the value of attribute functions.
3 4 5 |
# File 'lib/swiftfake/swift_class.rb', line 3 def functions @functions end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/swiftfake/swift_class.rb', line 3 def name @name end |